How to disable keybinding in Tmux

会有一股神秘感。 提交于 2019-12-06 00:48:54

问题


Using Tmux and Vim is a pain sometimes. One of the collisions for me is Control-S. I use it in Vim for opening buffers in split, but when using Tmux, well...

Tmux does something stupid with it, I can't figure out whats the purpose. But basically, when C-s is pressed in Tmux, screen freezes. And it unfreezes with C-q. I've no idea whats that good for, if anything.

unbind C-s
unbind C-q

I tried to unbind C-s in tmux.conf, but it didn't work. How can I unbind it?

Also I freed the binding from Terminal, in .bashrc

stty -ixon -ixoff

回答1:


First of all, I would say that the Ctrl-S (suspend the output) "feature" doesn't belong to tmux. The Ctrl+S and Ctrl+Q is actually the XON/XOFF protocol. It lives with Unix/linux for long time.

You can disable it by:

stty -ixon

or

stty stop undef

you could check by stty -a before and after the change. easier is, try the commands above, and press Ctrl-S to see if it worked.

good luck.



来源:https://stackoverflow.com/questions/17991007/how-to-disable-keybinding-in-tmux

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!