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/SunOS.c | |
| parent | a208917e7a935c019095acd1acd8165f08a54b7a (diff) | |
| download | plan9port-ef5c6a6edaf3dcf2cddd46841dc0dd8fce2bf967.tar.gz 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/SunOS.c')
| -rw-r--r-- | src/cmd/9term/SunOS.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/cmd/9term/SunOS.c b/src/cmd/9term/SunOS.c index ac1432de..e0f866ab 100644 --- a/src/cmd/9term/SunOS.c +++ b/src/cmd/9term/SunOS.c @@ -78,25 +78,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)==ECHO; - if(old != newe){ - if(newe) - ttmode.c_lflag |= ECHO; - else - ttmode.c_lflag &= ~ECHO; - if(tcsetattr(fd, TCSANOW, &ttmode) < 0) - fprint(2, "tcsetattr: %r\n"); - } - return old; -} - -int getintr(int fd) { if(tcgetattr(fd, &ttmode) < 0) |
