]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0321: Garbled output on serial terminals with XON/XOFF flow control v9.1.0321
authorAnton Sharonov <anton.sharonov@gmail.com>
Sun, 14 Apr 2024 18:02:24 +0000 (20:02 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 14 Apr 2024 18:02:50 +0000 (20:02 +0200)
commit49528da8a60f8fd38ca491d6ccec47dfccf5f23c
tree71fc7657638a759d09b611fd3804aa079a4d39fb
parent4052474a1bd2fe756bc7dc596d29d0d7581e35ae
patch 9.1.0321: Garbled output on serial terminals with XON/XOFF flow control

Problem:  When used terminal with XON/XOFF flow control, vim tries to
          still make CTRL-S mapping available, which results in severe
          screen corruption, especially on large redraws, and even
          spurious inputs (John Tsiombikas)
Solution: Disallow CTRL-S mapping if such terminal is recognized.
          Don't remove IXON from the bitmask inversion.
          (Anton Sharonov)

*** When started like this:

    TERM=vt420 vim

:set termcap

    shows "t_xon=y"

map <C-S> :echo "abc"<CR>

    does nothing (after <C-S> output freezes and subsequent <C-Q>
    unfreezes it)

*** When started like this:

    TERM=xterm vim

:set termcap

    shows "t_xon="

map <C-S> :echo "abc"<CR>

    works (after <C-S> one see "abc" string echo-ed)

fixes: #12674
closes: #14542

Signed-off-by: Anton Sharonov <anton.sharonov@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/tags
runtime/doc/term.txt
runtime/doc/version9.txt
src/optiondefs.h
src/os_unix.c
src/term.c
src/termdefs.h
src/testdir/test_cmdline.vim
src/testdir/test_terminal3.vim
src/version.c