RE:'less' can't determine terminal size?
Dear Sirs, I think that this bug is related to the one I reported on 2002/11/25 RXVT geometry bug. Rodrigo Medina [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: 'less' can't determine terminal size?
Hi, Sergei, :) Thank you for the speedy response! On Tue, 19 Nov 2002, Sergei Okhapkin wrote: What is the output of stty -a inside rxvt window? $ stty -a speed 38400 baud; rows 24; columns 80; line = 0; intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = undef; eol2 = undef; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany imaxbel opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -tostop echoctl echoke This is interesting, since the size of the window (as shown when I turn on line numbers ('-N') in 'less') is actually *25* lines high (columns are correct at 80). After resizing the rxvt window to increase the number of lines by 1, 'stty -a' correctly shows that there are 26 rows. Weird! Thanks for any ideas, ---Jason -Original Message- From: Tiller, Jason [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 9:04 PM To: '[EMAIL PROTECTED]' Subject: 'less' can't determine terminal size? Hi, All, :) I updated my installation recently, and I'm now suffering from an odd problem with less. I hope that somebody can point me in a direction for my own investigations. I had been running 1.3.12, I believe - after the refresh on Friday my cygwin1.dll is at 1.3.15. bash is 2.05b.0(7). I run bash via rxvt-2.7.2-14. Here's my rxvt run command: C:\WINNT\system32\cmd.exe /c start C:\cygwin\bin\rxvt.exe -tn rxvt -fg grey -bg black -fn Fixedsys -sr -sl 5000 -e /bin/bash --login -i I believe these environment variables are relevant: TERM=rxvt LESS=iFMSX# 8 CYGWIN=tty nontsec My problem is this: 'less' no longer properly updates the screen when I scroll through a file. Paging forward is fine, but when trying to scroll by line ('j' or 'e'), 'less' tells me that it is moving through the file, but the display doesn't update. The status line (which '-M' enables) shows the currently displayed lines changing ('75-97', '76-98', 77-99', etc.), but the displayed data doesn't change. Paging forward again causes the screen to update properly. Also, when I scroll backward ('k'), the normally-blank command line (bottom line) becomes filled with the previous status line. So, if I'm at the bottom of the file and the bottom two lines are: = .bash_profile lines 105-127/127 (END) = Then, after pressing 'k', the bottom two lines will read: = .bash_profile lines 104-126/127 99% .bash_profile lines 105-127/127 (END) = This *seems* to mean to me that 'less' can't determine the right size my rxvt window. My theory is reinforced because 'less' suddenly finds its brains again when I resize the window manually. How should I go about fixing this? Thanks in advance for any pointers, ---Jason Tiller * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: 'less' can't determine terminal size?
Hi, Again, Sergei, :) On Tue, 19 Nov 2002, Sergei Okhapkin wrote: What is the output of stty -a inside rxvt window? In my fiddling, I tried adding '-geometry 80x25' to my rxvt invocation just to see what would happen. Strangest thing - my window size was *26* lines. When I set -geometry to 80x24, rxvt opened up a *25* line window. Any idea why this might be happening? In all cases, if I manually resize the window, this seems to sync things up and everything's kosher after that. Thanks for your help, ---Jason -Original Message- From: Tiller, Jason [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 9:04 PM To: '[EMAIL PROTECTED]' Subject: 'less' can't determine terminal size? Hi, All, :) I updated my installation recently, and I'm now suffering from an odd problem with less. I hope that somebody can point me in a direction for my own investigations. I had been running 1.3.12, I believe - after the refresh on Friday my cygwin1.dll is at 1.3.15. bash is 2.05b.0(7). I run bash via rxvt-2.7.2-14. Here's my rxvt run command: C:\WINNT\system32\cmd.exe /c start C:\cygwin\bin\rxvt.exe -tn rxvt -fg grey -bg black -fn Fixedsys -sr -sl 5000 -e /bin/bash --login -i I believe these environment variables are relevant: TERM=rxvt LESS=iFMSX# 8 CYGWIN=tty nontsec My problem is this: 'less' no longer properly updates the screen when I scroll through a file. Paging forward is fine, but when trying to scroll by line ('j' or 'e'), 'less' tells me that it is moving through the file, but the display doesn't update. The status line (which '-M' enables) shows the currently displayed lines changing ('75-97', '76-98', 77-99', etc.), but the displayed data doesn't change. Paging forward again causes the screen to update properly. Also, when I scroll backward ('k'), the normally-blank command line (bottom line) becomes filled with the previous status line. So, if I'm at the bottom of the file and the bottom two lines are: = .bash_profile lines 105-127/127 (END) = Then, after pressing 'k', the bottom two lines will read: = .bash_profile lines 104-126/127 99% .bash_profile lines 105-127/127 (END) = This *seems* to mean to me that 'less' can't determine the right size my rxvt window. My theory is reinforced because 'less' suddenly finds its brains again when I resize the window manually. How should I go about fixing this? Thanks in advance for any pointers, ---Jason Tiller * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: 'less' can't determine terminal size?
Looks like rxvt bug. Did you try xterm instead? -Original Message- From: Jason Tiller [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 9:29 PM To: [EMAIL PROTECTED] Subject: RE: 'less' can't determine terminal size? Hi, Again, Sergei, :) On Tue, 19 Nov 2002, Sergei Okhapkin wrote: What is the output of stty -a inside rxvt window? In my fiddling, I tried adding '-geometry 80x25' to my rxvt invocation just to see what would happen. Strangest thing - my window size was *26* lines. When I set -geometry to 80x24, rxvt opened up a *25* line window. Any idea why this might be happening? In all cases, if I manually resize the window, this seems to sync things up and everything's kosher after that. Thanks for your help, ---Jason -Original Message- From: Tiller, Jason [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 9:04 PM To: '[EMAIL PROTECTED]' Subject: 'less' can't determine terminal size? Hi, All, :) I updated my installation recently, and I'm now suffering from an odd problem with less. I hope that somebody can point me in a direction for my own investigations. I had been running 1.3.12, I believe - after the refresh on Friday my cygwin1.dll is at 1.3.15. bash is 2.05b.0(7). I run bash via rxvt-2.7.2-14. Here's my rxvt run command: C:\WINNT\system32\cmd.exe /c start C:\cygwin\bin\rxvt.exe -tn rxvt -fg grey -bg black -fn Fixedsys -sr -sl 5000 -e /bin/bash --login -i I believe these environment variables are relevant: TERM=rxvt LESS=iFMSX# 8 CYGWIN=tty nontsec My problem is this: 'less' no longer properly updates the screen when I scroll through a file. Paging forward is fine, but when trying to scroll by line ('j' or 'e'), 'less' tells me that it is moving through the file, but the display doesn't update. The status line (which '-M' enables) shows the currently displayed lines changing ('75-97', '76-98', 77-99', etc.), but the displayed data doesn't change. Paging forward again causes the screen to update properly. Also, when I scroll backward ('k'), the normally-blank command line (bottom line) becomes filled with the previous status line. So, if I'm at the bottom of the file and the bottom two lines are: = .bash_profile lines 105-127/127 (END) = Then, after pressing 'k', the bottom two lines will read: = .bash_profile lines 104-126/127 99% .bash_profile lines 105-127/127 (END) = This *seems* to mean to me that 'less' can't determine the right size my rxvt window. My theory is reinforced because 'less' suddenly finds its brains again when I resize the window manually. How should I go about fixing this? Thanks in advance for any pointers, ---Jason Tiller * This communication may contain information that is proprietary, privileged, confidential or legally exempt from disclosure. If you are not a named addressee, you are notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so may be unlawful. If you have received this communication in error, please notify the sender via return e-mail and delete it from your computer. Thank you. St. Jude Medical, Inc. * -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
RE: 'less' can't determine terminal size?
Hi, Sergei, :) On Tue, 19 Nov 2002, Sergei Okhapkin wrote: Looks like rxvt bug. Did you try xterm instead? I don't know if I'd be so quick to implicate rxvt - it could just as easily be my setup. I would hardly describe myself as sophisticated in these terminal issues - heck, most of the Unix tty model is beyond me. Setting '-tn' in the rxvt invocation to xterm (as opposed to rxvt) made no difference that I could detect. Perhaps it is a bug, but I'd like to more digging, if you or someone else could point me at things to target. Thanks, ---Jason -Original Message- From: Jason Tiller [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 9:29 PM To: [EMAIL PROTECTED] Subject: RE: 'less' can't determine terminal size? Hi, Again, Sergei, :) On Tue, 19 Nov 2002, Sergei Okhapkin wrote: What is the output of stty -a inside rxvt window? In my fiddling, I tried adding '-geometry 80x25' to my rxvt invocation just to see what would happen. Strangest thing - my window size was *26* lines. When I set -geometry to 80x24, rxvt opened up a *25* line window. Any idea why this might be happening? In all cases, if I manually resize the window, this seems to sync things up and everything's kosher after that. Thanks for your help, ---Jason -Original Message- From: Tiller, Jason [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 9:04 PM To: '[EMAIL PROTECTED]' Subject: 'less' can't determine terminal size? Hi, All, :) I updated my installation recently, and I'm now suffering from an odd problem with less. I hope that somebody can point me in a direction for my own investigations. I had been running 1.3.12, I believe - after the refresh on Friday my cygwin1.dll is at 1.3.15. bash is 2.05b.0(7). I run bash via rxvt-2.7.2-14. Here's my rxvt run command: C:\WINNT\system32\cmd.exe /c start C:\cygwin\bin\rxvt.exe -tn rxvt -fg grey -bg black -fn Fixedsys -sr -sl 5000 -e /bin/bash --login -i I believe these environment variables are relevant: TERM=rxvt LESS=iFMSX# 8 CYGWIN=tty nontsec My problem is this: 'less' no longer properly updates the screen when I scroll through a file. Paging forward is fine, but when trying to scroll by line ('j' or 'e'), 'less' tells me that it is moving through the file, but the display doesn't update. The status line (which '-M' enables) shows the currently displayed lines changing ('75-97', '76-98', 77-99', etc.), but the displayed data doesn't change. Paging forward again causes the screen to update properly. Also, when I scroll backward ('k'), the normally-blank command line (bottom line) becomes filled with the previous status line. So, if I'm at the bottom of the file and the bottom two lines are: = .bash_profile lines 105-127/127 (END) = Then, after pressing 'k', the bottom two lines will read: = .bash_profile lines 104-126/127 99% .bash_profile lines 105-127/127 (END) = This *seems* to mean to me that 'less' can't determine the right size my rxvt window. My theory is reinforced because 'less' suddenly finds its brains again when I resize the window manually. How should I go about fixing this? Thanks in advance for any pointers, ---Jason Tiller -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/