More termios settings on startup, to ensure reporting of signal, flow control, and NL/CR keys

This commit is contained in:
Paul LeoNerd Evans
2008-02-23 19:43:05 +00:00
parent 696d5258a5
commit dda9be9110
2 changed files with 3 additions and 3 deletions

3
demo.c
View File

@@ -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);