public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* window size hook
@ 1999-07-06 10:52 Ian T Zimmerman
  1999-07-06 12:05 ` Chris Faylor
  1999-07-31 18:34 ` Ian T Zimmerman
  0 siblings, 2 replies; 4+ messages in thread
From: Ian T Zimmerman @ 1999-07-06 10:52 UTC (permalink / raw)
  To: cygwin

I believe the code for window resizing doesn't work as intended. On a
Unix machine:

light:~$ trap 'echo CAUGHT' SIGWINCH
light:~$ stty -a
speed 9600 baud; rows 26; columns 82;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
dsusp = <undef>; rprnt = ^R; werase = ^W; lnext = <undef>; flush = ^O;
-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

light:~$ CAUGHT
light:~$ CAUGHT
light:~$ CAUGHT
light:~$ CAUGHT
light:~$ CAUGHT
 
light:~$ stty -a
speed 9600 baud; rows 31; columns 83;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
dsusp = <undef>; rprnt = ^R; werase = ^W; lnext = <undef>; flush = ^O;
-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
light:~$ 


In a Cygwin window:

amazon:~$ trap 'echo CAUGHT' SIGWINCH
amazon:~$ stty -a
speed 38400 baud; rows 40; columns 100; 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 -tostop -echoctl -echoke
amazon:~$ stty -a
speed 38400 baud; rows 35; columns 97; 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 -tostop -echoctl
-echoke


I can see looking at winsup/fhandler_console.cc and
winsup/fhandler_tty.cc that code exists there which was clearly
intended to do this thing; it doesn't seem to work though.

One interesting observation is that I get the wrong behaviour even in
an xterm run on the local machine (the one from Suhaib's X11R6.4
bundle).  This would seem to indicate that the problem is not with
sending SIGWINCH itself (as the X server and protocol should take care 
of that) but some process group/session confusion.


Setup is NT WS 4, SP5, NTFS, binary mount, CYGWIN=tty ntea.

-- 
Ian Zimmerman
Lightbinders, Inc.
2325 3rd Street #324, San Francisco, California 94107


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: window size hook
  1999-07-06 10:52 window size hook Ian T Zimmerman
@ 1999-07-06 12:05 ` Chris Faylor
  1999-07-31 18:34   ` Chris Faylor
  1999-07-31 18:34 ` Ian T Zimmerman
  1 sibling, 1 reply; 4+ messages in thread
From: Chris Faylor @ 1999-07-06 12:05 UTC (permalink / raw)
  To: Ian T Zimmerman; +Cc: cygwin

On Tue, Jul 06, 1999 at 05:51:25PM +0000, Ian T Zimmerman wrote:
>In a Cygwin window:
>
>amazon:~$ trap 'echo CAUGHT' SIGWINCH
>amazon:~$ stty -a
>speed 38400 baud; rows 40; columns 100; 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 -tostop -echoctl -echoke
>amazon:~$ stty -a
>speed 38400 baud; rows 35; columns 97; 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 -tostop -echoctl
>-echoke
>
>
>I can see looking at winsup/fhandler_console.cc and
>winsup/fhandler_tty.cc that code exists there which was clearly
>intended to do this thing; it doesn't seem to work though.
>
>One interesting observation is that I get the wrong behaviour even in
>an xterm run on the local machine (the one from Suhaib's X11R6.4
>bundle).  This would seem to indicate that the problem is not with
>sending SIGWINCH itself (as the X server and protocol should take care 
>of that) but some process group/session confusion.
>
>
>Setup is NT WS 4, SP5, NTFS, binary mount, CYGWIN=tty ntea.

Patches gratefully accepted.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* window size hook
  1999-07-06 10:52 window size hook Ian T Zimmerman
  1999-07-06 12:05 ` Chris Faylor
@ 1999-07-31 18:34 ` Ian T Zimmerman
  1 sibling, 0 replies; 4+ messages in thread
From: Ian T Zimmerman @ 1999-07-31 18:34 UTC (permalink / raw)
  To: cygwin

I believe the code for window resizing doesn't work as intended. On a
Unix machine:

light:~$ trap 'echo CAUGHT' SIGWINCH
light:~$ stty -a
speed 9600 baud; rows 26; columns 82;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
dsusp = <undef>; rprnt = ^R; werase = ^W; lnext = <undef>; flush = ^O;
-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

light:~$ CAUGHT
light:~$ CAUGHT
light:~$ CAUGHT
light:~$ CAUGHT
light:~$ CAUGHT
 
light:~$ stty -a
speed 9600 baud; rows 31; columns 83;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
dsusp = <undef>; rprnt = ^R; werase = ^W; lnext = <undef>; flush = ^O;
-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
light:~$ 


In a Cygwin window:

amazon:~$ trap 'echo CAUGHT' SIGWINCH
amazon:~$ stty -a
speed 38400 baud; rows 40; columns 100; 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 -tostop -echoctl -echoke
amazon:~$ stty -a
speed 38400 baud; rows 35; columns 97; 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 -tostop -echoctl
-echoke


I can see looking at winsup/fhandler_console.cc and
winsup/fhandler_tty.cc that code exists there which was clearly
intended to do this thing; it doesn't seem to work though.

One interesting observation is that I get the wrong behaviour even in
an xterm run on the local machine (the one from Suhaib's X11R6.4
bundle).  This would seem to indicate that the problem is not with
sending SIGWINCH itself (as the X server and protocol should take care 
of that) but some process group/session confusion.


Setup is NT WS 4, SP5, NTFS, binary mount, CYGWIN=tty ntea.

-- 
Ian Zimmerman
Lightbinders, Inc.
2325 3rd Street #324, San Francisco, California 94107


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: window size hook
  1999-07-06 12:05 ` Chris Faylor
@ 1999-07-31 18:34   ` Chris Faylor
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Faylor @ 1999-07-31 18:34 UTC (permalink / raw)
  To: Ian T Zimmerman; +Cc: cygwin

On Tue, Jul 06, 1999 at 05:51:25PM +0000, Ian T Zimmerman wrote:
>In a Cygwin window:
>
>amazon:~$ trap 'echo CAUGHT' SIGWINCH
>amazon:~$ stty -a
>speed 38400 baud; rows 40; columns 100; 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 -tostop -echoctl -echoke
>amazon:~$ stty -a
>speed 38400 baud; rows 35; columns 97; 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 -tostop -echoctl
>-echoke
>
>
>I can see looking at winsup/fhandler_console.cc and
>winsup/fhandler_tty.cc that code exists there which was clearly
>intended to do this thing; it doesn't seem to work though.
>
>One interesting observation is that I get the wrong behaviour even in
>an xterm run on the local machine (the one from Suhaib's X11R6.4
>bundle).  This would seem to indicate that the problem is not with
>sending SIGWINCH itself (as the X server and protocol should take care 
>of that) but some process group/session confusion.
>
>
>Setup is NT WS 4, SP5, NTFS, binary mount, CYGWIN=tty ntea.

Patches gratefully accepted.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-07-31 18:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-06 10:52 window size hook Ian T Zimmerman
1999-07-06 12:05 ` Chris Faylor
1999-07-31 18:34   ` Chris Faylor
1999-07-31 18:34 ` Ian T Zimmerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).