Open pjones opened 4 years ago
Interesting!
It's indeed a parser failure. Code is at https://github.com/chreekat/terminfo-hs/blob/master/src/System/Terminfo/DBParse.hs#L111-L113 :
-- | the magic number for term files
magic :: Parser Int
magic = shortInt 0o432 <?> "Not a terminfo file (bad magic)"
My source for that number is term man page: https://linux.die.net/man/5/term
Maybe it has been outdated?
If you can figure it out, feel free to let me know and/or open a PR! I admit I have not looked in this lib in a while, but I'd be happy to keep it working.
I just noticed this:
And here are the first few bytes of the terminfo file:
Compared to the plain
xterm
file:The "failed reading: satisfy" part makes me think there's a bad parser somewhere. Any suggestions?