mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-18 12:01:16 -03:00
Disable ONLCR mapping of NL output to CR-NL
Per @nbuwe's excellent explanation in #4505, we can save on output to the tty by maintaining column location after NL by disabling the ONLCR terminal mode. Closes #4505.
This commit is contained in:
@@ -924,6 +924,7 @@ void reader_init() {
|
||||
shell_modes.c_iflag &= ~INLCR; // disable mapping NL (\cJ) to CR (\cM)
|
||||
shell_modes.c_iflag &= ~IXON; // disable flow control
|
||||
shell_modes.c_iflag &= ~IXOFF; // disable flow control
|
||||
shell_modes.c_iflag &= ~ONLCR; // disable mapping of NL to CR-NL on output (#4505)
|
||||
|
||||
shell_modes.c_lflag &= ~ICANON; // turn off canonical mode
|
||||
shell_modes.c_lflag &= ~ECHO; // turn off echo mode
|
||||
|
||||
Reference in New Issue
Block a user