diff options
author | LemonBoy <thatlemon@gmail.com> | 2015-09-19 23:58:16 +0200 |
---|---|---|
committer | LemonBoy <thatlemon@gmail.com> | 2015-09-19 23:58:16 +0200 |
commit | 06040fb30bc0503696794ff6097cd55eff332bb5 (patch) | |
tree | ecf64cc55aa80e219f8456a0e4b14f24fc3a2770 /src/fe-text | |
parent | 24d32c28ee2d5dbd001cbe29fa5d90077c6be107 (diff) | |
parent | 9586766d87820bdfa9e7cbe805f5ed4b7b0378e5 (diff) | |
download | irssi-06040fb30bc0503696794ff6097cd55eff332bb5.zip |
Merge remote-tracking branch 'origin' into sasl
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/terminfo-core.c | 3 |
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 */ |