Issue description
I'd love to be able to configure prompt-cursor-colour by referencing some variable in my "theme" palette:
set -g prompt-cursor-colour '#{@yellow}'
That is currently invalid, and only something like that is accepted:
set -g prompt-cursor-colour '#f9e2af'
I realise that the other properties that I could configure using such variables were style strings outright, complete with possible boldness factor, foreground, background, et cet., while this one is a mere single colour.
Consider for instance the differences both in usage and implementation between prompt-cursor-colour and copy-mode-position-style:
set -g prompt-cursor-colour '#f9e2af'
set -g copy-mode-position-style 'fg=#{@yellow} bg=#{@bg} bold'
|
{ .name = "prompt-cursor-colour", |
|
.type = OPTIONS_TABLE_COLOUR, |
|
.scope = OPTIONS_TABLE_SESSION, |
|
.default_num = -1, |
|
.text = "Colour of the cursor when in the command prompt." |
|
}, |
|
{ .name = "copy-mode-position-style", |
|
.type = OPTIONS_TABLE_STRING, |
|
.scope = OPTIONS_TABLE_WINDOW, |
|
.default_str = "#{E:mode-style}", |
|
.flags = OPTIONS_TABLE_IS_STYLE, |
|
.separator = ",", |
|
.text = "Style of position indicator in copy mode." |
|
}, |
Am I missing something and it currently is possible to work with variables for single colours like this?
Alternatively, would it make sense to bring that extra convenience to tmux?
Required information
Version: 3.7-next, built off d0caf0a3 (current master tip on GitHub today, 2026-03-07)
Issue description
I'd love to be able to configure
prompt-cursor-colourby referencing some variable in my "theme" palette:That is currently invalid, and only something like that is accepted:
I realise that the other properties that I could configure using such variables were style strings outright, complete with possible boldness factor, foreground, background, et cet., while this one is a mere single colour.
Consider for instance the differences both in usage and implementation between
prompt-cursor-colourandcopy-mode-position-style:tmux/options-table.c
Lines 965 to 970 in d0caf0a
tmux/options-table.c
Lines 1171 to 1178 in d0caf0a
Am I missing something and it currently is possible to work with variables for single colours like this?
Alternatively, would it make sense to bring that extra convenience to
tmux?Required information
Version:
3.7-next, built offd0caf0a3(currentmastertip on GitHub today,2026-03-07)