diff options
Diffstat (limited to 'src/reader.cpp')
-rw-r--r-- | src/reader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reader.cpp b/src/reader.cpp index 63b70283..df196492 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -1028,6 +1028,8 @@ void reader_init() /* Set the mode used for the terminal, initialized to the current mode */ memcpy(&shell_modes, &terminal_mode_on_startup, sizeof shell_modes); + shell_modes.c_iflag &= ~ICRNL; /* turn off mapping CR (\cM) to NL (\cJ) */ + shell_modes.c_iflag &= ~INLCR; /* turn off mapping NL (\cJ) to CR (\cM) */ shell_modes.c_lflag &= ~ICANON; /* turn off canonical mode */ shell_modes.c_lflag &= ~ECHO; /* turn off echo mode */ shell_modes.c_iflag &= ~IXON; /* disable flow control */ |