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

Add API to allow creating Screen using custom terminfo as well as custom tty. #479

Merged
merged 1 commit into from Sep 26, 2021

Conversation

iamtakingiteasy
Copy link
Contributor

@iamtakingiteasy iamtakingiteasy commented Aug 22, 2021

A followup to #148 -- currently NewTerminfoScreenFromTty still uses local OS environment to get the terminfo and there is no public API to override it.

This PR adds such API, in form of

  • function NewTerminfoScreenFromTtyTerminfo that also accepts terminfo instance
  • function LookupTerminfo that exposes current name-to-terminfo lookup procedure

While NewTerminfoScreenFromTty still defeaults to LookupTerminfo with $TERM contents to maintain backwards compatability.

@iamtakingiteasy iamtakingiteasy changed the title Add NewTerminfoScreenFromTtyTerminfo to allow creating Screen using custom terminfo as well as custom pty. Add API to allow creating Screen using custom terminfo as well as custom tty. Aug 22, 2021
@gdamore
Copy link
Owner

gdamore commented Sep 26, 2021

yes, I can see how this would be useful -- thanks for your contribution.

@gdamore gdamore merged commit 2f3199b into gdamore:master Sep 26, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants