aboutsummaryrefslogtreecommitdiff
path: root/demo.c
diff options
context:
space:
mode:
Diffstat (limited to 'demo.c')
-rw-r--r--demo.c3
1 files changed, 2 insertions, 1 deletions
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);