Getting red curly lines under words in tmux for spellcheck

4 views
Skip to first unread message

Sivaram Neelakantan

unread,
Jan 1, 2026, 11:01:19 PM (7 days ago) Jan 1
to tmux-...@googlegroups.com

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
--

Tobias Damisch

unread,
Jan 3, 2026, 5:02:28 AM (5 days ago) Jan 3
to tmux-...@googlegroups.com
I looked into this, just for the fun of it. Under Linux, too, I get
curly underlines outside of tmux just fine, but not inside tmux.
With some googling, I found out that this is probably an issue with
ncurses, which tmux relies on. I compiled latest stable ncurses
and tried compiling latest tmux against it, configure succeeds, but make
doesn't.

Now, one could go back ncurses releases and see where tmux starts to
compile, and test if this fixes the issue, but that didn't seem fun to
me right now. It is, though, what I would try next.

Cheers,
Tobias

Am 02.01.26 um 05:01 schrieb Sivaram Neelakantan:

Nicholas Marriott

unread,
Jan 3, 2026, 6:05:14 AM (5 days ago) Jan 3
to Sivaram Neelakantan, tmux-...@googlegroups.com
Try

set -as terminal-features '*:usstyle'



--
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 tmux-users+...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/tmux-users/85344o3bp8.fsf%40gmail.com.

M Kelly

unread,
Jan 7, 2026, 11:26:44 PM (17 hours ago) Jan 7
to tmux-users
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.

my TERM before starting tmux is set to xterm-256color and is tmux-256color once inside tmux.

thx,
-m

Nicholas Marriott

unread,
2:15 AM (14 hours ago) 2:15 AM
to M Kelly, tmux-users
It must require the second argument which specifies the colour space, convention is to treat this as optional.


Reply all
Reply to author
Forward
0 new messages