Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Date: Tue, 6 Jul 1999 15:06:14 -0400 From: Chris Faylor To: Ian T Zimmerman Cc: cygwin AT sourceware DOT cygnus DOT com Subject: Re: window size hook Message-ID: <19990706150614.D1219@cygnus.com> References: <8753gpfnnu DOT fsf AT amazon DOT lbin DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: <8753gpfnnu.fsf@amazon.lbin.com>; from Ian T Zimmerman on Tue, Jul 06, 1999 at 05:51:25PM +0000 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 = ; eol2 = ; >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 = ; eol2 = ; >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 AT sourceware DOT cygnus DOT com