[gnu.bash.bug] XOFF & bash 0.99

james@bigtex.cactus.org (James Van Artsdalen) (06/11/89)

If a process is run from bash, and XOFF (^S) is pressed as that
process exitsm bash will resume and place the console is raw mode.
The result is that you can't press (^Q) and restart the output: the
terminal is effectively hung.  My "solution" is to turn on output
whenever ^Q is pressed.  I have no idea how to do this in BSD or
Xenix.  I assume that there is a better way...

*** /tmp/,RCSt1a25527	Sat Jun 10 17:49:56 1989
--- /tmp/,RCSt2a25527	Sat Jun 10 17:49:58 1989
***************
*** 1825,1831 ****
  rl_quoted_insert (count)
       int count;
  {
!   int c = rl_getc (in_stream);
    rl_insert (count, c);
  }
  
--- 1825,1835 ----
  rl_quoted_insert (count)
       int count;
  {
!   int c;
! #ifdef SYSV
!   ioctl(fileno(in_stream), TCXONC, 1);
! #endif
!   c = rl_getc (in_stream);
    rl_insert (count, c);
  }
  
-- 
James R. Van Artsdalen          james@bigtex.cactus.org   "Live Free or Die"
Dell Computer Co    9505 Arboretum Blvd Austin TX 78759         512-338-8789

james@bigtex.cactus.org (James Van Artsdalen) (06/11/89)

In <17926@bigtex.cactus.org>, I wrote:

> *** /tmp/,RCSt1a25527	Sat Jun 10 17:49:56 1989
> --- /tmp/,RCSt2a25527	Sat Jun 10 17:49:58 1989
> ***************
> *** 1825,1831 ****

Er, yes, that's readline.c.  You mean Larry Wall can't handle this?  :-)
-- 
James R. Van Artsdalen          james@bigtex.cactus.org   "Live Free or Die"
Dell Computer Co    9505 Arboretum Blvd Austin TX 78759         512-338-8789