Привязать префикс Tmux к символу юникода?

813
AllanLRH

Я хотел бы связать префикс Tmux с символом Unicode (при этом сохраняя C-b).

Я пытался вставить следующее в мой ~/.tmux.conf, но ничего из этого не работает

set -g prefix M-$ bind M-$ send-prefix

set -g prefix  bind  send-prefix

set -g prefix "" bind "" send-prefix

Я на OS X Yosemite 10.10.3, использую датскую раскладку клавиатуры.

0

1 ответ на вопрос

4
Thomas Dickey

tmux only binds "single" characters (8-bit) plus a few special keys which can be found in the terminal database.

The manual is a little vague:

tmux allows a command to be bound to most keys, with or without a prefix key. When specifying keys, most represent themselves (for example ‘A’ to ‘Z’). Ctrl keys may be prefixed with ‘C-’ or ‘^’, and Alt (meta) with ‘M-’. In addition, the following special key names are accepted: Up, Down, Left, Right, BSpace, BTab, DC (Delete), End, Enter, Escape, F1 to F12, Home, IC (Insert), NPage/PageDown/PgDn, PPage/PageUp/PgUp, Space, and Tab.

However, this has been discussed before (along with the ctrl and alt modifiers):

Я нашел их, просто напрасно надеялся, что что-то изменилось с 2012 года :( Но все равно спасибо за быстрый ответ. AllanLRH 8 лет назад 0

Похожие вопросы