Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change prefix key of tmux to Ctrl?

Tags:

tmux

I'd like to change prefix key of tmux from C-b to Ctrl only and tried following in .tmux.conf. But it doesn't work.

unbind C-b
set -g prefix C
bind C send-prefix 

Thanks

like image 498
Lei Hao Avatar asked Oct 17 '25 10:10

Lei Hao


1 Answers

As explained in another answer at Unix Stack Exchange, this can't be done:

Ctrl and Shift are modifiers. These keys aren't transmitted to applications running in a terminal. Rather, when you press something like Ctrl+Shift+A, this sends a character or a character sequence at the time you press the A key.

like image 193
Alexander Batischev Avatar answered Oct 19 '25 12:10

Alexander Batischev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!