mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 16:51:15 -03:00
reader: Fix external modes again
Missed in the port
This commit is contained in:
@@ -3647,6 +3647,10 @@ pub fn term_copy_modes() {
|
||||
unsafe { libc::tcgetattr(STDIN_FILENO, &mut modes) };
|
||||
let mut tty_modes_for_external_cmds = TTY_MODES_FOR_EXTERNAL_CMDS.lock().unwrap();
|
||||
*tty_modes_for_external_cmds = modes;
|
||||
// We still want to fix most egregious breakage.
|
||||
// E.g. OPOST is *not* something that should be set globally,
|
||||
// and 99% triggered by a crashed program.
|
||||
term_fix_external_modes(&mut tty_modes_for_external_cmds);
|
||||
|
||||
// Copy flow control settings to shell modes.
|
||||
if (tty_modes_for_external_cmds.c_iflag & IXON) != 0 {
|
||||
|
||||
Reference in New Issue
Block a user