I wrote:
> > > As far as I can tell, this is expected behavior. Search the help > > > for Ctrl-S and Ctrl-Q and you'll find notes that these are both used > > > for flow control. > > > > > > :helpgrep \cctrl.[sq] > > > > I agree, this is expected for the reasons you mentioned. What is not > > expected is that `stty -ixon` should avoid this pitfall. > > > > > I've had the following in my ~/.bashrc for years to avoid > > > fat-fingering Ctrl-S while using Vim and wondering what happened, > > > and also to enable forward searching in emacs-mode readline > > > interfaces. > > > > > > stty stop undef > > > > > > I've left Ctrl-Q alone, just in case. > > > > Yes, I have had `stty -ixon` in my `~/.zshrc` for years for the same reason. > > > > > -ixon would have worked as well. > > > > No, if ModifyOtherKeys is disabled, it doesn't work anymore since the > > commit > > https://github.com/vim/vim/commit/d6cd5ffade84a1054fed23079133af3b837033bf. > > This is why I reported the issue. > > > > However, `stty stop undef` fixes the issue; thanks for the info, I'll > > use this command from now on. > > > > I'll keep the issue open, because it looks like a regression; if `stty > > -ixon` worked in the past, I don't see why it couldn't work anymore. > > The idea of the recent patch was to make it possible to map CTRL-S, > instead of stopping terminal output. For my I can't find a way to make > CTRL-S stop the output, also not in the shell. I thought "stty ixon" > would enable it, but it doesn't. > > I can revert that patch, since it appears to cause trouble. But I would > like to understand why I can't reproduce the problem. OK, found out what happens. I managed to get the terminal in modifyOtherKeys mode by resetting t_TI and then exiting Vim. That's why CTRL-S didn't work in the terminal. Looking a the change again, it was done inverted: IXON was added instead of removed. Fixing that and doing some tests shows that it is now possible to map CTRL-S where it wasn't before, and it still stops output when on the command line, e.g. using :grep with a lot of matches. -- hundred-and-one symptoms of being an internet addict: 223. You set up a web-cam as your home's security system. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/202005311112.04VBC6Mj587960%40masaka.moolenaar.net.
