RE: [PATCH] implementation of determine_screen_width() for Window s

2004-01-29 Thread Herold Heiko
> From: David Fritz [mailto:[EMAIL PROTECTED] .. > How often do people change the size of the screen buffer > while a command > is running? Rarely I think, for example when you notice a huge file is being downloaded slowly and you enlarge the window in order to have a better granularity on the

RE: [PATCH] implementation of determine_screen_width() for Window s

2004-01-28 Thread Herold Heiko
> From: Hrvoje Niksic [mailto:[EMAIL PROTECTED] .. > Yes. Specifically, Unix's SIGWINCH simply sets a flag that means > "window size might have changed, please check it out". That is > because checking window size on each refresh would perform an > unnecessary ioctl. > > One thing we could do fo

Re: [PATCH] implementation of determine_screen_width() for Window s

2004-01-28 Thread Hrvoje Niksic
[ This discussion is about a patch that determines the screen width on Windows console. ] Herold Heiko <[EMAIL PROTECTED]> writes: > Note: for a complete look-and-feel similar to the unix version we > still need a detection when the size changes (on unix this is done > with received_sigwinch in

RE: [PATCH] implementation of determine_screen_width() for Window s

2004-01-28 Thread Herold Heiko
Works fine for me on Winnt 4.0 sp6a (cmd windows with column sizes != 80 now use the whole line for the progress bar), compiled with MSVC. A binary with that patch is available from http://xoomer.virgilio.it/hherold/ In order to test just open a command window with a buffer column size !=80, the p