screen-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen size adaption


From: Michael Schroeder
Subject: Re: Screen size adaption
Date: Mon, 2 Aug 2004 14:38:48 +0200
User-agent: Mutt/1.4.2.1i

On Mon, Aug 02, 2004 at 02:32:58PM +0300, Kai Hendry wrote:
> On Mon, Aug 02, 2004 at 11:16:55AM +0200, Michael Schroeder wrote:
> > 'stty -a' prints the correct sizes before you start screen?
> > If you type ^A:dinfo, is the correct size displayed? What about
> > ^Ai?
> 
> bilbo$ stty -a
> speed 38400 baud; rows 58; columns 178; line = 0;
> intr = ^C; quit = ^\; erase = ^?; 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 -xcase -tostop -echoprt 
> echoctl echoke
> 
> (178,58) UTF-8 xterm color iso2022
> 
> (9,45)/(178,58)+1024 +flow UTF-8 0(bilbo)

Looks good, all size values match. (Hopefully 178x58 was the correct
size?)

> GOOD: When I just ssh to my machine. And then `resize` my terminal after 
> dragging
> the corner it works. COLUMNS and LINES change.
> 
> BAD: When I've run screen, adjust the terminal size and then run resize it 
> does
> not update like before without screen.
> 
> I don't understand this as with any other machine screen behaves properly. Yes
> I have tried creating a new user account. No, I don't want to do a Windows
> style re-install.

Maybe you're using a different kernel?

To debug this further you should strace the screen frontend process
(the lowercase screen) and see if it gets the SIGWINCH. Then you
should strace the backend ("SCREEN") and check if it gets the resize
message and sets the size on the pty file descriptors. Then you
should strace your application in screen to check if it gets the
SIGWINCH...

Cheers,
  Michael.

-- 
Michael Schroeder           address@hidden
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]