- To get
TAB
andctrl-i
to do different things. I added the following configuration to myxterm
andbash
configuration files, and everything worked fine
XTerm.vt100.translations: #override \n\
Ctrl <Key>I: string("\033[a5i")
bind -m vi-insert -x '"\e[a5i": echo aa'
But when I ran
bash
in tmux, the above configuration didn't work properly, and when I hitctrl-i
, instead of executing theecho
command, screen printed out5i
I tried to perform this binding in
tmux
, but the results were not satisfactoryWhere
^[[1;2A5i
is the key sequence ofctrl-i
I got using theread
command
bind-key -n ^[[1;2A5i 'send-keys \033[a5i'