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

Support for 32-bit terminfo files. #3

Closed
antoszka opened this issue Jul 11, 2018 · 5 comments
Closed

Support for 32-bit terminfo files. #3

antoszka opened this issue Jul 11, 2018 · 5 comments

Comments

@antoszka
Copy link

Dear Lispers,

it seems that the package doesn't support 32-bit terminfo files. When I try to load the terminfo db with the TERM env variable equal to screen-256color I hit this error:

                (if (= whosit #o432)              
                    whosit                        
                  (error "Invalid file format"))))

...which (I assume) is related to this:

/lib/terminfo/s/screen-256color: Compiled 32-bit terminfo entry "screen-256color"
/lib/terminfo/x/xterm:           Compiled terminfo entry "xterm"

The initial bytes for the other format are #o542 it seems and probably completely new support has to be written.

@npatrick04
Copy link
Owner

I took a look at it. The 32-bit extended number format was introduced to support ncurses 6.1 in January. It does need a fix, but looks like it's only the magic number, and the numbers array updated from 16-bit to 32-bit.

@antoszka
Copy link
Author

antoszka commented Jul 12, 2018 via email

@npatrick04
Copy link
Owner

Go for it. I got my info from the Term(5) manpage.

@antoszka
Copy link
Author

antoszka commented Jul 13, 2018 via email

@npatrick04
Copy link
Owner

I went ahead and implemented a fix. It turns out that the term(5) documentation for the new magic number doesn't match the implementation. Term(5) states 0542, it's implemented as 01036 (542 in decimal).

9ef7019

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

No branches or pull requests

2 participants