Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tmux is blocking Ctrl-s in OSX ML

Im using iTerm2 + Tmux + Vim.

Here are my dotfiles: https://bitbucket.org/furion/dotfiles/src

The problem I'm having, is when Vim is opened within Tmux session, the C-s binding doesn't work.

When I run Vim just in regular iTerm2 session, C-s works fine. Since I use this keystroke a lot, its really frustrating.

Also, this issue is only present on OSX. On my Arch box, Tmux or without, everything works fine.

EDIT: I already have control flow disabled:

bind -r '\C-s'
stty -ixon
stty stop undef

This issue is only on OSX. Also, its only under Tmux on OSX. Without Tmux no issue. On Arch Linux With or w/o Tmux, no issue.

like image 576
if __name__ is None Avatar asked Sep 05 '13 22:09

if __name__ is None


1 Answers

It probably has to do with flow control: historically (and still today, in some terminals), Ctrl-S pauses the output, and Ctrl-Q resumes it.

iTerm2 ignores Ctrl-S, as it assumes that it has no use for flow control in the world where 300 and 2400 baud modems are not all that common.

I am not sure, but I think stty -ixon might help.

(I'm tentatively answering since it's been 5 hours, but I might be way off on the solution, even though I think the cause is correct).

like image 128
Amadan Avatar answered Sep 20 '22 01:09

Amadan