Hi,
I don't know quite why, but with Windows Terminal and WSL2 I do not get
curly underscore colours in tmux with terminal-features 'usstyle'.
I had to add a terminal-override for setulc and make it a little different -
# try to add curly underscore colors for WSL2 ...
%if '#{m/r:.,#{WSL_DISTRO_NAME}}'
# set-option -sa terminal-features ',*:usstyle'
set-option -sa terminal-overrides ',*:Smulx=\E[4::%p1%dm'
set-option -sa terminal-overrides
',*:Setulc=\E[58::2::::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
%endif
I don't know why it has to have the extra colons as compared to the
traditional setulc that works for most other terminals.
I found this info searching sites such as
https://github.com/leonasdev/.dotfiles/issues/15#issuecomment-1931906339
my TERM before starting tmux is set to xterm-256color and is tmux-256color
once inside tmux.
thx,
-m
On Saturday, January 3, 2026 at 6:05:14 AM UTC-5 Nicholas Marriott wrote:
> Try
>
> set -as terminal-features '*:usstyle'
>
>
>
> On Fri, 2 Jan 2026 at 04:01, Sivaram Neelakantan <[email protected]>
> wrote:
>
>>
>> I'm on WSL tmux 3.6a running on Windows Terminal.
>>
>> This works outside of tmux in the bash shell and I can see red curly
>> lines
>> $ printf "\e[4:3m\e[58:2::255:0:0mRed Curly\e[0m\n"
>>
>> from within tmux, the same gives only the text without the curly lines.
>>
>> $ echo $TERM
>> tmux-256color
>>
>> Is there a way to get tmux to use the same terminal codes from Windows
>> Terminal?
>>
>> sivaram
>> --
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "tmux-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion, visit
>> https://groups.google.com/d/msgid/tmux-users/85344o3bp8.fsf%40gmail.com.
>>
>
--
You received this message because you are subscribed to the Google Groups
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion, visit
https://groups.google.com/d/msgid/tmux-users/6ecaf640-6222-465c-b7bd-635fd564f84fn%40googlegroups.com.