dnkl/foot
41
2.0k
Fork
You've already forked foot
243

no undercurl in tmux #2214

Closed
opened 2025年11月09日 15:17:43 +01:00 by kokostek · 3 comments

Foot Version

foot version: 1.25.0 +pgo +ime +graphemes -assertions

TERM environment variable

'tmux-256color' ('foot' - outside of tmux)

Compositor Name and Version

kwin 6.5.2

Distribution

arch linux

Terminal multiplexer

tmux

Shell, TUI, application

zsh

Server/standalone mode

  • Standalone
  • Server

Foot config

# -*- conf -*-
font=monospace:size=11
[environment]
[security]
[bell]
[desktop-notifications]
[scrollback]
[url]
[cursor]
[mouse]
[touch]
[colors]
[csd]
[key-bindings]
show-urls-launch=Control+Shift+u
unicode-input=none
[search-bindings]
[url-bindings]
[text-bindings]
[mouse-bindings]

Description of Bug and Steps to Reproduce

When I do printf "\e[4:3mhello world\n" outside of tmux in foot, I see curly underline in the output. When I do the same from tmux session, I see only the straight underline.

In kitty, curly underline appears both inside and outside of tmux.

Some notes:

  • I have foot-terminfo package installed.
  • I have this line in my .tmux.conf: set -a terminal-features 'foot*:RGB'.

Relevant logs, stacktraces, etc.

No response

### Foot Version foot version: 1.25.0 +pgo +ime +graphemes -assertions ### TERM environment variable 'tmux-256color' ('foot' - outside of tmux) ### Compositor Name and Version kwin 6.5.2 ### Distribution arch linux ### Terminal multiplexer tmux ### Shell, TUI, application zsh ### Server/standalone mode - [x] Standalone - [ ] Server ### Foot config ```ini # -*- conf -*- font=monospace:size=11 [environment] [security] [bell] [desktop-notifications] [scrollback] [url] [cursor] [mouse] [touch] [colors] [csd] [key-bindings] show-urls-launch=Control+Shift+u unicode-input=none [search-bindings] [url-bindings] [text-bindings] [mouse-bindings] ``` ### Description of Bug and Steps to Reproduce When I do `printf "\e[4:3mhello world\n"` outside of tmux in foot, I see curly underline in the output. When I do the same from tmux session, I see only the straight underline. In kitty, curly underline appears both inside and outside of tmux. Some notes: - I have `foot-terminfo` package installed. - I have this line in my `.tmux.conf`: `set -a terminal-features 'foot*:RGB'`. ### Relevant logs, stacktraces, etc. _No response_

The unreleased tmux commit 7499d925 (Do not downgrade styled underscores to standard underscore if the terminal does not support them, 2025年05月12日) should fix this specific issue.

I think it's because older versions of tmux check for the Smulx boolean capability in terminfo;
foot's terminfo includes that but the ncurses release is probably a bit behind.

You can probably work around this by adding Smulx to your terminal-features (not sure about the syntax)

$ grep Smulx foot.info
Smulx=\E[4:%p1%dm,

The unreleased tmux commit 7499d925 (Do not downgrade styled underscores to standard underscore if the terminal does not support them, 2025年05月12日) should fix this specific issue. I think it's because older versions of tmux check for the `Smulx` boolean capability in terminfo; foot's terminfo includes that but the ncurses release is probably a bit behind. You can probably work around this by adding Smulx to your `terminal-features` (not sure about the syntax) $ grep Smulx foot.info Smulx=\E[4:%p1%dm,
Collaborator
Copy link

You can probably work around this by adding Smulx to your terminal-features (not sure about the syntax).

set -ga terminal-features ',foot:usstyle'

There are several other features you may want to add to this list (all documented in man tmux).

> You can probably work around this by adding `Smulx` to your `terminal-features` (not sure about the syntax). ```sh set -ga terminal-features ',foot:usstyle' ``` There are several other features you may want to add to this list (all documented in `man tmux`).
craigbarnes 2025年11月09日 21:13:32 +01:00

Thanks! foot:usstyle did the trick. I've been scrolling through tmux's man and somehow missed it in the terminal features section.

Thanks! `foot:usstyle` did the trick. I've been scrolling through tmux's man and somehow missed it in the terminal features section.
Sign in to join this conversation.
No Branch/Tag specified
master
osc-5522
sixel-heap-buffer-overflow
releases/1.27
releases/1.26
releases/1.25
releases/1.24
multi-cursor
releases/1.23
pixman-16f-2
releases/1.22
releases/1.21
releases/1.20
releases/1.19
releases/1.18
releases/1.17
releases/1.16
releases/1.15
releases/1.14
releases/1.13
releases/1.12
releases/1.11
releases/1.10
releases/1.9
releases/1.8
releases/1.7
releases/1.6
releases/1.5
releases/1.4
releases/1.3
releases/1.2
releases/1.1
releases/1.0
1.27.0
1.26.1
1.26.0
1.25.0
1.24.0
1.23.1
1.23.0
1.22.3
1.22.2
1.22.1
1.22.0
1.21.0
1.20.2
1.20.1
1.20.0
1.19.0
1.18.1
1.18.0
1.17.2
1.17.1
1.17.0
1.16.2
1.16.1
1.16.0
1.15.3
1.15.2
1.15.1
1.15.0
1.14.0
1.13.1
1.13.0
1.12.1
1.12.0
1.11.0
1.10.3
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.2
1.7.1
1.7.0
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.9.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dnkl/foot#2214
Reference in a new issue
dnkl/foot
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?