rem: fprintf(stderr, "                    \r%4lu  0x%02x", i, rbyte);
add: if (i % 1024 == 0) fprintf(stderr, "                    \r%4lu  0x%02x", i, rbyte);
context: int avr_read(int fd, AVRPART * p, int memtype){  unsigned char    rbyte;  unsigned long    i;  unsigned char  * buf;  int              size;  buf  = p->mem[memtype].buf;  size = p->mem[memtype].size;  for (i=0; i<size; i++) {    rbyte = avr_read_byte(fd, p, memtype, i);    fprintf(stderr, "                    \r%4lu  0x%02x", i, rbyte);    buf[i] = rbyte;  }  fprintf(stderr, "\n");  return i;}