RE: xterm line wrapping

2008-12-09 Thread Phil Betts
Thomas Dickey wrote on Wednesday, December 10, 2008 1:31 AM::

> On Tue, Dec 09, 2008 at 10:57:53AM -0500, Gustavo Seabra wrote:
>> Hi All,
>> 
>> I wonder if anyone else sees this. When I open an xterm, it all works
>> fine with the default dimensions. But if I resize the terminal, line
>> wrapping stops working until I return to the initial size. This was
>> present in the old xterm, and persists after upgrading to the new
>> one. 
> 
> that sounds like the "feature" in bash which makes it not pass on the
> SIGWINCH signal, depending on bash's settings.  (I should add it to
> my ncurses faq, since the bash maintainer doesn't answer this
> question) 
> 
>> Interestingly, if I have a file opened in vi when resizing, vi works
>> quite well and wraps the lines correctly according to the terminal
>> size. But when I get out of vi I get the same problems back :-(
> 
> vi is probably doing the ioctl to check on the screensize...

Try the command "shopt -s checkwinsize" in bash.  This causes bash to
check the terminal size after every command and adjusts $LINES and
$COLUMNS to the correct values.

If that works, add it to your .bashrc


Phil
-- 
This email has been scanned by Ascribe PLC using Microsoft Antigen for Exchange.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: xterm line wrapping

2008-12-09 Thread Thomas Dickey
On Tue, Dec 09, 2008 at 10:57:53AM -0500, Gustavo Seabra wrote:
> Hi All,
> 
> I wonder if anyone else sees this. When I open an xterm, it all works
> fine with the default dimensions. But if I resize the terminal, line
> wrapping stops working until I return to the initial size. This was
> present in the old xterm, and persists after upgrading to the new one.

that sounds like the "feature" in bash which makes it not pass on the
SIGWINCH signal, depending on bash's settings.  (I should add it to
my ncurses faq, since the bash maintainer doesn't answer this question)
 
> Interestingly, if I have a file opened in vi when resizing, vi works
> quite well and wraps the lines correctly according to the terminal
> size. But when I get out of vi I get the same problems back :-(

vi is probably doing the ioctl to check on the screensize...

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net


signature.asc
Description: Digital signature


xterm line wrapping

2008-12-09 Thread Gustavo Seabra
Hi All,

I wonder if anyone else sees this. When I open an xterm, it all works
fine with the default dimensions. But if I resize the terminal, line
wrapping stops working until I return to the initial size. This was
present in the old xterm, and persists after upgrading to the new one.

Interestingly, if I have a file opened in vi when resizing, vi works
quite well and wraps the lines correctly according to the terminal
size. But when I get out of vi I get the same problems back :-(

Thanks,
Gustavo.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/