aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term/bsdpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9term/bsdpty.c')
-rw-r--r--src/cmd/9term/bsdpty.c23
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)