0

This works for me:

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

but this does not:

unbind C-b
set-option -g prefix ½
bind-key ½ send-prefix

How can I use the ½ key as prefix?

$ tmux -V
tmux 2.6
$ locale
LANG=C
LANGUAGE=C
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
7
  • Works for me in Kubuntu 18.04.3 LTS, both in konsole and tty2. Tmux 2.6. For the record: I type ½ with AltGr+6. Apr 5 '20 at 19:39
  • I am using Kubuntu 18.04, too, in konsole. What could be the difference between our systems?
    – Ole Tange
    Apr 5 '20 at 19:41
  • Not sure. I use Polish keyboard layout. How do you type ½? Apr 5 '20 at 19:43
  • Danish keyboard: I have a ½ key (that I never use).
    – Ole Tange
    Apr 5 '20 at 19:44
  • I changed to Danish. The ½ key is now the one between Tab and Esc. Still works in tmux. Apr 5 '20 at 19:48
3

Support for Unicode keys was added in tmux 2.3. Are you sure your tmux is new enough?

Does tmux show -g prefix show the change? Did you remember to restart tmux entirely after changing .tmux.conf?

1
  • Restarting all tmux was the problem: I had a tmux running in another terminal.
    – Ole Tange
    Apr 5 '20 at 20:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.