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

Weird discoloration with certain values of ${TERM} #25

Closed
djsigmann opened this issue Jan 8, 2023 · 2 comments
Closed

Weird discoloration with certain values of ${TERM} #25

djsigmann opened this issue Jan 8, 2023 · 2 comments
Assignees
Labels
upstream Upstream issue

Comments

@djsigmann
Copy link

djsigmann commented Jan 8, 2023

I use alacritty as my terminal emulator (https://github.com/alacritty/alacritty) and use the alacritty-direct terminfo entry as described in extras/alacritty.info.

When I run pacseek it takes several seconds to load and then displays the interface with a very strange, dulled look:
$ pacseek
2023-01-08_12-26

It loads near-instantly and appears normal if I change the Value of $TERM:
$ TERM=xterm-direct pacseek
2023-01-08_12-30

If I replace the xterm-direct terminfo entry with the alacritty-direct entry:
$ infocmp alacritty-direct | perl -np -e "s/alacritty/xterm/g;" | sudo tic -x -

and then run for a second time:
$ TERM=xterm-direct pacseek

Pacseek works just as it should.

And if I do the opposite and replace the alacritty-direct terminfo entry with the xterm-direct entry it still behaves oddly.
In fact, from my testing, it seems that any value for $TERM is alright as long as it doesn't include -direct unless it is xterm-direct; the content of the relevant terminfo entry seems to be irrelevant.

I have managed to reproduce this behaviour in several terminal emulators:

  • Alacritty
  • St
  • Xterm

I suspect this may be some sort of bug, perhaps 'xterm-direct' was hard coded somewhere.

@moson-mo
Copy link
Owner

moson-mo commented Jan 8, 2023

That slow loading glitch was corrected in tcell it seems. gdamore/tcell@7557ac2
Updating dependencies fixes that. I'll have to see if I file a new release for this.

Not sure what the issue with those colors is though.
It probably needs a definition for alacritty-direct similar to the xterm one.
F.e.: https://github.com/gdamore/tcell/blob/main/terminfo/x/xterm/direct.go

@moson-mo moson-mo added the upstream Upstream issue label Jan 8, 2023
@moson-mo moson-mo self-assigned this Jan 8, 2023
@moson-mo
Copy link
Owner

Fixed for alacritty-direct.
Now there seems to be some general issue of handling the -direct term variants with terminfo atm.
gdamore/tcell#585 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Upstream issue
Projects
None yet
Development

No branches or pull requests

2 participants