[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"stty discard undef" fails under Mac OS X
From: |
Vincent Lefevre |
Subject: |
"stty discard undef" fails under Mac OS X |
Date: |
Wed, 14 Feb 2007 13:12:10 +0100 |
User-agent: |
Mutt/1.5.13-vl-r15861 (2007-02-12) |
Hi,
Under Mac OS X:
prunille:~> /usr/local/bin/stty --version
stty (GNU coreutils) 6.7
[...]
prunille:~> /usr/local/bin/stty discard undef
/usr/local/bin/stty: invalid argument `discard'
Try `/usr/local/bin/stty --help' for more information.
zsh: exit 1 /usr/local/bin/stty discard undef
But with the stty provided by Mac OS X, "/bin/stty discard undef"
works as expected:
prunille% /bin/stty -a | grep discard
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
prunille% /bin/stty discard undef
prunille% /bin/stty -a | grep discard
cchars: discard = <undef>; dsusp = ^Y; eof = ^D; eol = <undef>;
It seems that "stty flush undef" does the same thing and works
with the coreutils, but it isn't described in the coreutils stty(1)
man page and in the "stty --help" output:
prunille:~> /usr/local/bin/stty --help | grep flush
* dsusp CHAR CHAR will send a terminal stop signal once input flushed
* [-]imaxbel beep and do not flush a full input buffer on a character
[-]noflsh disable flushing after interrupt and quit special characters
--
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
- "stty discard undef" fails under Mac OS X,
Vincent Lefevre <=