diff options
author | jsg <jsg> | 2014-04-25 12:45:16 +0000 |
---|---|---|
committer | jsg <jsg> | 2014-04-25 12:45:16 +0000 |
commit | 40cb4cb086210916bf5b6140d6f78049073863e6 (patch) | |
tree | 6d13e7394ae5b495e3a34b69dcf2b265a3fe30ea | |
parent | bec6c807cd580b003cd94b52a20caa2cbc7a0753 (diff) |
specifying ECHOCTL once is enough
ok nicm@
-rw-r--r-- | tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -193,7 +193,7 @@ tty_init_termios(int fd, struct termios *orig_tio, struct bufferevent *bufev) tio.c_iflag |= IGNBRK; tio.c_oflag &= ~(OPOST|ONLCR|OCRNL|ONLRET); tio.c_lflag &= ~(IEXTEN|ICANON|ECHO|ECHOE|ECHONL|ECHOCTL| - ECHOPRT|ECHOKE|ECHOCTL|ISIG); + ECHOPRT|ECHOKE|ISIG); tio.c_cc[VMIN] = 1; tio.c_cc[VTIME] = 0; if (tcsetattr(fd, TCSANOW, &tio) == 0) |