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

Rescue if tigetstr(capname) cannot be obtained #385

Merged
merged 2 commits into from
Dec 2, 2021

Conversation

ima1zumi
Copy link
Member

@ima1zumi ima1zumi commented Nov 9, 2021

fix #384

If $TERM is vt102, there are no kend, khome, civis, or cnorm in capabilities.
TerminfoError is raised in Reline::Terminfo.tigetstr(capname), so it is rescued if it does not exist.

@ima1zumi ima1zumi marked this pull request as draft November 24, 2021 06:40
@ima1zumi
Copy link
Member Author

ima1zumi commented Nov 24, 2021

Doesn't work well if $TERM = ansi fixed

fix ruby#384

If `$TERM` is `vt102`, there are no `kend`, `khome`, `civis`, or `cnorm` in capabilities.
`TerminfoError` is raised in `Reline::Terminfo.tigetstr(capname)`, so it is rescued if it does not exist.
@ima1zumi ima1zumi marked this pull request as ready for review November 24, 2021 10:30
@aycabta aycabta merged commit e56ca3d into ruby:master Dec 2, 2021
@ima1zumi ima1zumi deleted the undefined-capability branch December 3, 2021 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

`tigetstr': can't find capability: kend (Reline::Terminfo::TerminfoError)
2 participants