From dda9be9110732f824cfc191a3bc587886e787bb5 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sat, 23 Feb 2008 19:43:05 +0000 Subject: More termios settings on startup, to ensure reporting of signal, flow control, and NL/CR keys --- demo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'demo.c') diff --git a/demo.c b/demo.c index a2d431c..4a96b64 100644 --- a/demo.c +++ b/demo.c @@ -14,7 +14,8 @@ int main(int argc, char *argv[]) { } int old_lflag = termios.c_lflag; - termios.c_lflag &= ~(ICANON|ECHO); + termios.c_iflag &= ~(IXON|INLCR|ICRNL); + termios.c_lflag &= ~(ICANON|ECHO|ISIG); tcsetattr(0, TCSANOW, &termios); -- cgit v1.2.3