Skip to content
Snippets Groups Projects
Commit fffdfbd2 authored by jp7g21's avatar jp7g21
Browse files

Disable CRNL for terminal

parent eb1c6306
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,7 @@ void configure_duck(void) ...@@ -38,6 +38,7 @@ void configure_duck(void)
err(EXIT_FAILURE, "tcgetattr failed"); err(EXIT_FAILURE, "tcgetattr failed");
} }
cfsetospeed(&tio, DUCK_BAUD); cfsetospeed(&tio, DUCK_BAUD);
tio.c_oflag &= ~ONLCR;
if (tcsetattr(duckfd, TCSANOW, &tio)) { if (tcsetattr(duckfd, TCSANOW, &tio)) {
err(EXIT_FAILURE, "tcsetattr failed"); err(EXIT_FAILURE, "tcsetattr failed");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment