diff options
author | Russ Cox <rsc@swtch.com> | 2010-09-03 10:21:16 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2010-09-03 10:21:16 -0400 |
commit | ef5c6a6edaf3dcf2cddd46841dc0dd8fce2bf967 (patch) | |
tree | e984e781353aa989307b53056ea664185317fc60 /src/cmd/9term/bsdpty.c | |
parent | a208917e7a935c019095acd1acd8165f08a54b7a (diff) | |
download | plan9port-ef5c6a6edaf3dcf2cddd46841dc0dd8fce2bf967.tar.gz plan9port-ef5c6a6edaf3dcf2cddd46841dc0dd8fce2bf967.tar.bz2 plan9port-ef5c6a6edaf3dcf2cddd46841dc0dd8fce2bf967.zip |
9term, win: better echo cancellation
Also just drop \r from output.
It's a losing battle to keep turning it off.
R=rsc
http://codereview.appspot.com/2128042
Diffstat (limited to 'src/cmd/9term/bsdpty.c')
-rw-r--r-- | src/cmd/9term/bsdpty.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/cmd/9term/bsdpty.c b/src/cmd/9term/bsdpty.c index 52b9bb8a..4836d24d 100644 --- a/src/cmd/9term/bsdpty.c +++ b/src/cmd/9term/bsdpty.c @@ -97,29 +97,6 @@ isecho(int fd) } int -setecho(int fd, int newe) -{ - int old; - - if(tcgetattr(fd, &ttmode) < 0) - fprint(2, "tcgetattr: %r\n"); - old = ttmode.c_lflag & ECHO; - if(old != newe){ - ttmode.c_lflag &= ~ECHO; - ttmode.c_lflag |= newe; - /* - * I tried using TCSADRAIN here, but that causes - * hangs if there is any output waiting for us. - * I guess TCSADRAIN is intended for use by our - * clients, not by us. - */ - if(tcsetattr(fd, 0, &ttmode) < 0) - fprint(2, "tcsetattr: %r\n"); - } - return old; -} - -int getintr(int fd) { if(tcgetattr(fd, &ttmode) < 0) |