search for: max_winsize

Displaying 2 results from an estimated 2 matches for "max_winsize".

2016 Jan 19
6
FWD: [patch] scp + UTF-8
...a.de> Subject: [patch] scp + UTF-8 [...] I've tested this under the following conditions: - It lines out the same way the current scp does for ascii. - when shrinking the terminal it prints just as much characters (width) of the filename as ascii would. - To support terminals larger then MAX_WINSIZE and still be properly indented I increased the buf size to 4x the size of MAX_WINSIZE, since the maximum size of an UTF-8 char <should> be 4 bytes. It's quite a lot more memory, but I reckon it's better then the horrible indentation we have now. I primarily developed this wit...
2009 Oct 25
0
alternate output for progressmeter
...? ? ? if (win_resized) { + ? ? ? if (progresstype==0 && win_resized) { ? ? ? ? ? ? ? ?setscreensize(); ? ? ? ? ? ? ? ?win_resized = 0; ? ? ? ?} @@ -257,12 +264,16 @@ ? ? ? ?stalled = 0; ? ? ? ?bytes_per_second = 0; - ? ? ? setscreensize(); + ? ? ? if (progresstype) + ? ? ? ? ? ? ? win_size=MAX_WINSIZE; + ? ? ? else { + ? ? ? ? ? ? ? setscreensize(); + ? ? ? ? ? ? ? signal(SIGWINCH, sig_winch); + ? ? ? } ? ? ? ?if (can_output()) ? ? ? ? ? ? ? ?refresh_progress_meter(); ? ? ? ?signal(SIGALRM, update_progress_meter); - ? ? ? signal(SIGWINCH, sig_winch); ? ? ? ?alarm(UPDATE_INTERVAL); ?} @@ -278,7...