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

Elinks fails to switch to the alternate screen mode #2366

Closed
tertium opened this issue Feb 15, 2020 · 2 comments
Closed

Elinks fails to switch to the alternate screen mode #2366

tertium opened this issue Feb 15, 2020 · 2 comments

Comments

@tertium
Copy link

tertium commented Feb 15, 2020

The terminal-based web browser Elinks uses the CSI code ?47h to switch to the altscreen mode, which is supported by XTerm and URxvt, but not by Kitty which only recognizes ?1049h. One negative consequence of this is that scrolling with mouse wheel does not work.

The issue is arguably on the Elinks' side, but it would be nice if mode 47 was supported as a synonym for 1049. Possible implementation.

@kovidgoyal
Copy link
Owner

This is definitely a bug in elinks. Application must use the terminfo
properties smcup and rmcup to change to alternate screens. kitty's
terminfo species 1047 for these. If elinks has this value hardcoded it
should be changed to use the value from terminfo.

@tertium
Copy link
Author

tertium commented Feb 16, 2020

Fair enough.

To whomever with the same issue, tput smcup ; elinks ... ; tput rmcup will work, too, as long as you don't use the "OS Shell" feature (or at least don't use altscreen programs when in there).

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

No branches or pull requests

2 participants