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

Relax checks for extended capability to support new format #39

Closed
wants to merge 1 commit into from

Conversation

jamessan
Copy link
Contributor

In the 20180331 release, the format was slightly changed:

20180331
+ improve terminfo write/read by modifying the fourth item of the
extended header to denote the number of valid strings in the extended
string table (prompted by a comment in unibilium's sources).

Since the number of valid string capabilities is not necessarily the
same as extstrslen, it's not possible to sanity check the total number
of items up front anymore.

Include a new test with an updated screen terminfo dump.

In the 20180331 release, the format was slightly changed:

> 20180331
>         + improve terminfo write/read by modifying the fourth item of the
>           extended header to denote the number of valid strings in the extended
>           string table (prompted by a comment in unibilium's sources).

Since the number of valid string capabilities is not necessarily the
same as extstrslen, it's not possible to sanity check the total number
of items up front anymore.

Include a new test with an updated screen terminfo dump.
@jamessan
Copy link
Contributor Author

This only addresses the parser path, not unibi_dump. I'll try to find some time to work on that too.

@jamessan
Copy link
Contributor Author

FYI, I'm carrying this patch in Debian's unibilium packaging, as the inability to parse the new format was affecting neovim's input handling.

@blueyed
Copy link

blueyed commented Aug 7, 2019

For reference: neovim#5 - I've done it there based on the patch carried in Neovim.

@justinmk
Copy link

Merged in https://github.com/neovim/unibilium.

@jamessan jamessan closed this Feb 24, 2022
@jamessan jamessan deleted the terminfo-compat branch February 24, 2022 19:23
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

3 participants