Displaying 1 result from an estimated 1 matches for "win_resized".
2009 Oct 25
0
alternate output for progressmeter
...ss_meter(char *, off_t, off_t *);
?void ? stop_progress_meter(void);
--- progressmeter.c ? ? 2006-08-05 04:39:40.000000000 +0200
+++ progressmeter_new.c 2009-10-24 20:32:45.455788330 +0200
@@ -74,12 +74,15 @@
?static int win_size; ? ? ? ? ? /* terminal window size */
?static volatile sig_atomic_t win_resized; /* for window resizing */
+int ? ?progresstype = 0; ? ? ? /* use default tty progress reporting */
+
?/* units for format_size */
?static const char unit[] = " KMGT";
?static int
?can_output(void)
?{
+ ? ? ? if (progresstype) return 1;
? ? ? ?return (getpgrp() == tcgetpgrp(STDOUT_FILEN...