summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2015-09-19 23:09:29 +0200
committerailin-nemui <ailin-nemui@users.noreply.github.com>2015-09-19 23:09:29 +0200
commitefc8f5f18758dc27c93f7f4b662daceada583257 (patch)
treebe9cc469955aeda7c41226fd5e5eba0ec0042892 /src
parent9556062a9d6a47a051d3d8d8737f918f27b66101 (diff)
parent061fb347502bd0b98f4587cfdce6612808d0c989 (diff)
downloadirssi-efc8f5f18758dc27c93f7f4b662daceada583257.zip
Merge pull request #283 from LemonBoy/unset-crnl
Clear the ICRNL flag
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/terminfo-core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-text/terminfo-core.c b/src/fe-text/terminfo-core.c
index 6339e6f4..60927f1a 100644
--- a/src/fe-text/terminfo-core.c
+++ b/src/fe-text/terminfo-core.c
@@ -502,6 +502,9 @@ static void terminfo_input_init(TERM_REC *term)
memcpy(&term->tio, &term->old_tio, sizeof(term->tio));
term->tio.c_lflag &= ~(ICANON | ECHO); /* CBREAK, no ECHO */
+ /* Disable the ICRNL flag to disambiguate ^J and Enter, also disable the
+ * software flow control to leave ^Q and ^S ready to be bound */
+ term->tio.c_iflag &= ~(ICRNL | IXON | IXOFF);
term->tio.c_cc[VMIN] = 1; /* read() is satisfied after 1 char */
term->tio.c_cc[VTIME] = 0; /* No timer */