From 41faf1bd2e1e0ec7b8ecff1203ccaf8b3752a6d2 Mon Sep 17 00:00:00 2001 From: Ron Williams Date: Fri, 24 Nov 2023 11:53:39 -0800 Subject: [PATCH] cfmakeraw: missing disable of ICRNL --- src/header/termios/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/header/termios/mod.rs b/src/header/termios/mod.rs index 096ecbef4a..70e5d38f5a 100644 --- a/src/header/termios/mod.rs +++ b/src/header/termios/mod.rs @@ -188,7 +188,7 @@ pub unsafe extern "C" fn tcflow(fd: c_int, action: c_int) -> c_int { #[no_mangle] pub unsafe extern "C" fn cfmakeraw(termios_p: *mut termios) { - (*termios_p).c_iflag &= !(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | IXON) as u32; + (*termios_p).c_iflag &= !(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON) as u32; (*termios_p).c_oflag &= !OPOST as u32; (*termios_p).c_lflag &= !(ECHO | ECHONL | ICANON | ISIG | IEXTEN) as u32; (*termios_p).c_cflag &= !(CSIZE | PARENB) as u32;