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. Commented Apr 5, 2020 at 19:39
  • I am using Kubuntu 18.04, too, in konsole. What could be the difference between our systems? Commented Apr 5, 2020 at 19:41
  • Not sure. I use Polish keyboard layout. How do you type ½? Commented Apr 5, 2020 at 19:43
  • Danish keyboard: I have a ½ key (that I never use). Commented Apr 5, 2020 at 19:44
  • I changed to Danish. The ½ key is now the one between Tab and Esc. Still works in tmux. Commented Apr 5, 2020 at 19:48

1 Answer 1

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. Commented Apr 5, 2020 at 20:43

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.