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

Provide xterm "titeInhibit" feature #4502

Open
mitchellh opened this issue Jan 3, 2025 · 0 comments
Open

Provide xterm "titeInhibit" feature #4502

mitchellh opened this issue Jan 3, 2025 · 0 comments
Labels
vt Control sequence related

Comments

@mitchellh
Copy link
Contributor

Discussed in #4498

Originally posted by linsomniac January 3, 2025
xterm provides a configuration option called "titeInhibit" which blocks the "ti" and "te" termcap entries, which prevents programs from using the alternate screen. Search for "titeInhibit" here for more information: https://www.x.org/archive/X11R6.7.0/doc/xterm.1.html

I've always found it preferable to be able to exit "man foo" or "vi bar" and have the contents I was just seeing on my screen remain on my screen for reference. I realize this can be implemented by setting LESS="-X" or modifying the terminfo to remove ti/te, but the ability to set it as a terminal preference and have it enforced across all systems/sessions/users in xterm has been really nice.

Implementation Notes

We should look at xterm's source code (MIT licensed) in all the places this configuration affects to ensure we did the right thing.

@mitchellh mitchellh added the vt Control sequence related label Jan 3, 2025
@mitchellh mitchellh changed the title Provide xterm "titeInhibit" feature. Provide xterm "titeInhibit" feature Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vt Control sequence related
Projects
None yet
Development

No branches or pull requests

1 participant