ray@GIBBS.PHYSICS.PURDUE.EDU (Ray Moody) (07/15/89)
Bash uses TIOCSETP to reset the tty states when a job stops. This flushes my typeahead. Bash should use TIOCSETN to avoid flushing typeahead. Ray ------------------------------------------------------------------------------- RCS file: RCS/jobs.c,v retrieving revision 1.2 diff -c -r1.2 jobs.c *** /tmp/,RCSt1017471 Fri Jul 14 13:47:36 1989 --- jobs.c Fri Jul 14 13:46:31 1989 *************** *** 699,705 int tty = open ("/dev/tty", O_RDONLY); if (tty != -1) { ! ioctl (tty, TIOCSETP, &shell_tty_info); close (tty); } } --- 699,705 ----- int tty = open ("/dev/tty", O_RDONLY); if (tty != -1) { ! ioctl (tty, TIOCSETN, &shell_tty_info); close (tty); } }
bfox@AUREL.CALTECH.EDU (Brian Fox) (07/15/89)
Date: Fri, 14 Jul 89 13:49:26 EST From: ray@gibbs.physics.purdue.edu (Ray Moody) Bash uses TIOCSETP to reset the tty states when a job stops. This flushes my typeahead. Bash should use TIOCSETN to avoid flushing typeahead. Yeah, I noticed this one right away also. Brian