cake
/
p7utils
Archived
1
0
Fork 0

Corrected option -#

This commit is contained in:
Thomas Touhey 2017-04-04 18:24:03 +02:00
parent 7c265e8bda
commit 5ff68c806b
1 changed files with 1 additions and 7 deletions

View File

@ -126,15 +126,10 @@ static void sendfile_display(p7ushort_t id, p7ushort_t total)
sendfile_display_initialized = 1;
/* put initial buffer */
fputs(buf, stdout);
/* save cursor position */
fputs("\x1B[s", stdout);
/* we're done */
return ;
}
/* id and total start from 1, let them start from zero */
id--; total--;
/* modify buffer */
/* - # - */
int current = 38 * id / total;
@ -145,8 +140,7 @@ static void sendfile_display(p7ushort_t id, p7ushort_t total)
/* put it */
fputs(buf, stdout);
/* force cursor position */
fputs("\x1B""8", stdout);
fflush(stdout);
}
/**