From 40cb4cb086210916bf5b6140d6f78049073863e6 Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 25 Apr 2014 12:45:16 +0000 Subject: [PATCH 1/2] specifying ECHOCTL once is enough ok nicm@ --- tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty.c b/tty.c index c8b6a84a..3ae21ab5 100644 --- a/tty.c +++ b/tty.c @@ -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) From 5b2c8156d528f284c63bc0a698805e4461431257 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 29 Apr 2014 22:31:22 +0000 Subject: [PATCH 2/2] fcntl.h is still needed here. --- client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client.c b/client.c index 70c1a007..ec63fc07 100644 --- a/client.c +++ b/client.c @@ -25,6 +25,7 @@ #include #include +#include #include #include #include