Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 941713 - =app-misc/tmux-3.5 wrong character used for ncurses horizontal lines if TERM is xterm
Summary: =app-misc/tmux-3.5 wrong character used for ncurses horizontal lines if TERM ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2024-10-17 15:52 UTC by Boris Staletic
Modified: 2024-10-18 19:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Staletic 2024-10-17 15:52:48 UTC
After upgrading my system to tmux 3.5 I've encountered this tmux bug:

https://github.com/tmux/tmux/issues/4182

The bug is fixed in this tmux commit:

https://github.com/tmux/tmux/commit/934035db7197d4510b330df8d8963f78e9c8756d

It's not a big deal, as I've found a workaround. This bug report is more of a way to inform gentoo maintainers in case pulling in the patch would be desireable.

Reproducible: Always

Steps to Reproduce:
1. Upgrade to tmux 3.5
2. Put `set -g default-terminal "xterm-256color"` in your .tmux.conf
3. Open alsamixer or any other ncurses program that tries to draw a box.
Actual Results:  
Horizontal lines are lines.

Expected Results:  
Horizontal lines are just qqqqqqqqqqqqqqqqqqqq.

The workaround that I've found is setting TERM to something else that works. In my case screen-256color was a good choice.
Comment 1 Larry the Git Cow gentoo-dev 2024-10-18 19:30:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41ffaf555975bb44a4f6bd8e406e55ef954bedcd

commit 41ffaf555975bb44a4f6bd8e406e55ef954bedcd
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-10-18 19:29:01 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-10-18 19:29:01 +0000

    app-misc/tmux: add fix for TERM=xterm
    
    Triaged-by: Sam James <sam@gentoo.org>
    Closes: https://bugs.gentoo.org/941713
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 app-misc/tmux/files/tmux-3.5-fix-xterm-sym.patch   | 38 ++++++++++++++++++++++
 .../tmux/{tmux-3.5.ebuild => tmux-3.5-r1.ebuild}   |  1 +
 2 files changed, 39 insertions(+)