Qix- / terminfo

Parse the Terminfo database
MIT License
9 stars 1 forks source link

Error: terminfo for xterm-256color has invalid magic number #5

Open TheArcaneBrony opened 1 month ago

TheArcaneBrony commented 1 month ago
/home/User/git/NewProject12/node_modules/terminfo/index.js:40
                throw new Error('terminfo for ' + name + ' has invalid magic number');
        ^
Error: terminfo for xterm-256color has invalid magic number
    at parseTermBuffer (/home/User/git/NewProject12/node_modules/terminfo/index.js:40:9)
    at module.exports (/...)
    at Function.printLogo (...)

Environment: NixOS 24.11

Qix- commented 1 month ago

Yeah :( Looks like terminfo database has changed their formats at some point over the last couple of years.

See https://github.com/Qix-/better-exceptions/issues/117.

I unfortunately don't have a lot of time to devote to this; if someone wants to investigate and report back (or better, PR) I'd be happy to look into a fix or cut a release.