pv 1.7.18 doesn't use the whole terminal width #72
In Cygwin, the output of pv 1.7.18 is always 80 characters wide, even when the terminal is wider, for example 199 columns as here:
$ pv -S -s 100G < /dev/zero > /dev/null 100GiB 0:00:11 [8.73GiB/s] [================================>] 100% $ echo $COLUMNS 199
pv 1.7.0 does use the whole terminal width in Cygwin.
Confirmed that I can reproduce this on my own Cygwin installation using the example you have provided.
The fault appears to be caused by the configure and autoheader changes. In
src/pv/display.c there is a check for "
HAVE_TERMIOS_H", but this is no longer defined in
As a short term workaround, after running "
src/include/config.h and add
#define HAVE_TERMIOS_H 1
to the end of it, then run "
I have committed a fix to the main branch. If you would like to confirm that it works for you, please download the latest code (e.g. "
git clone https://github.com/a-j-wood/pv.git") and then run "
./generate.sh && ./configure && make". Thanks.
Confirmed that the problem is fixed in main. Thanks! Once you make a new release I'll push it out to Cygwin.
Thanks. A new release is imminent, since I expect that this fault was not confined only to the Cygwin platform.
Version 1.7.24 now released.
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?