Skip to content
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

Terminfo not working properly for ubuntu #6563

Open
MartyMcFlyInTheSky opened this issue Jan 7, 2025 · 0 comments
Open

Terminfo not working properly for ubuntu #6563

MartyMcFlyInTheSky opened this issue Jan 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@MartyMcFlyInTheSky
Copy link

What Operating System(s) are you seeing this problem on?

Linux X11

Which Wayland compositor or X11 Window manager(s) are you using?

i3 x11

WezTerm version

wezterm 20240915-153243-2d0c5cdd

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

After downloading and compiling the terminfo entry for wezterm and putting it to ~/.terminfo, restarting wezterm will yield a bash prompt without colors. Also, there's weird behavior when exiting neovim (the exit seemingly doesn't happen, the buffer view just stays on the screen and is slowly moved up with every new line of the prompt).

To Reproduce

I'm working on ubuntu 22.04. I don't have an entry of wezterm in terminfo. To reassure myself I did

infocmp wezterm

which yields:

infocmp: couldn't open terminfo file /usr/share/terminfo/w/wezterm.

Then I followed the steps described here:
https://wezfurlong.org/wezterm/config/lua/config/term.html

Now infocmp finds wezterm:

#       Reconstructed via infocmp from file: /home/user/.terminfo/w/wezterm
wezterm|Wez's terminal emulator,
        am, bce, ccc, hs, km, mc5i, mir, msgr, npc, xenl,
        colors#0x100, cols#80, it#8, lines#24, pairs#0x7fff,
        acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
        bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
        ...

so I thought I was ready to set config.term = "wezterm" in the config file

but then it goes from this:

image

to this:

image

So the colors are absent. This is just one example, in general the terminal seems to completely misbehave..

Configuration

local config = {}

-- Enable advanced terminal feature (https://wezfurlong.org/wezterm/config/lua/config/term.html)
config.term = "wezterm"

...
return config

Expected Behavior

Colors are shown and everything is nice(r) :>

Logs

Debug Overlay
wezterm version: 20240915-153243-2d0c5cdd x86_64-unknown-linux-gnu
Window Environment: X11 i3
Lua Version: Lua 5.4
OpenGL: Mesa Intel(R) Graphics (ADL GT2) 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
Enter lua statements or expressions and hit Enter.
Press ESC or CTRL-D to exit
21:29:53.378 ERROR wezterm_mux_server_impl::local > writing pdu data buffer: Broken pipe (os error 32)

Anything else?

No response

@MartyMcFlyInTheSky MartyMcFlyInTheSky added the bug Something isn't working label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant