-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add Debian terminfo directory default to find_terminfo_file #51809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I don't seem to have the permissions to officially request a review so I'm tagging @tecosaur in this comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add the full list from that README too
In principle, I don't see anything wrong with this, but I'm curious where On my system, if I run |
I originally didn't add The rest is already handled by the function. |
|
@tecosaur What distro are you on? On Debian (raspberrypiOS) and Ubuntu 23.04, the manual has the following:
|
I'm on opensuse, but I can't see the
which has me thinking this could be a "debian special"? |
Probably is. The readme is also missing from CentOS 8. |
The files in |
It isn't. The lack of these specified in the man page is because the terminfo directories can be specified as build time options. For instance, the build configs of several distros are: Debian:
Fedora:
OpenSUSE:
Nix:
|
01bae74
to
709636a
Compare
709636a
to
60ac8ab
Compare
Rebased now that #51198 is merged. I tested it and it's able to find the tmux terminfo file on debian so ready to merge after review and/or passing tests. |
Test failure is unrelated |
60ac8ab
to
affe7ae
Compare
Without this,
Base.current_terminfo
returnsTermInfo(String[]; 0 flags, 0 numbers, 0 strings)
because it cannot find the correct terminfo files. In the regular terminal, there was basic color and formatting functionality because$TERM
s starting withxterm
are treated specially, but in a tmux session, where the$TERM = tmux-256color
, there was no color at all.This also has the side-effect of enabling strikethrough and italics in the default gnome terminal emulator.
The readme found in
/etc/terminfo/README
(as mentioned interminfo(5) "Fetching Compiled Descriptions"
) says the following:I believe the manual might be different depending on the distro.