We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c80cc commit bda931cCopy full SHA for bda931c
src/unix_term.rs
@@ -220,6 +220,7 @@ pub fn read_single_key() -> io::Result<Key> {
220
let mut termios = unsafe { termios.assume_init() };
221
let original = termios;
222
unsafe { libc::cfmakeraw(&mut termios) };
223
+ termios.c_oflag = original.c_oflag;
224
c_result(|| unsafe { libc::tcsetattr(fd, libc::TCSADRAIN, &termios) })?;
225
226
let rv: io::Result<Key> = loop {
0 commit comments