diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-05-31 13:09:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-05-31 13:09:47 +0200 |
commit | 928eec649b8af389de0fdb7aba2034d27df3e058 (patch) | |
tree | a480df7582cc02e72e6e2138c5b7b761988f53aa /src/os_unix.c | |
parent | ebe9d34aa07037cff2188a8dd424ee1f59cbb0bf (diff) | |
download | vim-git-928eec649b8af389de0fdb7aba2034d27df3e058.tar.gz |
patch 8.2.0856: CTRL-S stops outputv8.2.0856
Problem: CTRL-S stops output.
Solution: Invert the IXON flag. (closes #6166)
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index e1296c4b5..c6ba2499b 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3481,10 +3481,8 @@ mch_settmode(tmode_T tmode) if (tmode == TMODE_RAW) { // ~ICRNL enables typing ^V^M - tnew.c_iflag &= ~ICRNL; - // Do not make CTRL-S stop output, for most users it is unexpected and - // is hardly ever useful. - tnew.c_iflag |= IXON; + // ~IXON disables CTRL-S stopping output, so that it can be mapped. + tnew.c_iflag &= ~(ICRNL | IXON); tnew.c_lflag &= ~(ICANON | ECHO | ISIG | ECHOE # if defined(IEXTEN) && !defined(__MINT__) | IEXTEN // IEXTEN enables typing ^V on SOLARIS |