version 1.11, 2003/07/30 07:44:14 |
version 1.12, 2003/07/30 07:53:27 |
|
|
return (getpgrp() == tcgetpgrp(STDOUT_FILENO)); |
return (getpgrp() == tcgetpgrp(STDOUT_FILENO)); |
} |
} |
|
|
|
|
static void |
static void |
format_size(char *buf, int size, off_t bytes) |
format_size(char *buf, int size, off_t bytes) |
{ |
{ |
|
|
} else |
} else |
win_size = DEFAULT_WINSIZE; |
win_size = DEFAULT_WINSIZE; |
win_size += 1; /* trailing \0 */ |
win_size += 1; /* trailing \0 */ |
|
|
if (can_output()) |
if (can_output()) |
refresh_progress_meter(); |
refresh_progress_meter(); |
|
|
|
|
/* Ensure we complete the progress */ |
/* Ensure we complete the progress */ |
if (cur_pos != end_pos) |
if (cur_pos != end_pos) |
refresh_progress_meter(); |
refresh_progress_meter(); |
|
|
atomicio(vwrite, STDOUT_FILENO, "\n", 1); |
atomicio(vwrite, STDOUT_FILENO, "\n", 1); |
} |
} |