Repository navigation
Releases
Releases · xo/terminfo
terminfo v1.3.1
Fixed
DecodereturnsErrInvalidHeaderfor a negative count in the main header, as ncurses does. Before, such a file panicked.Decodeno longer panics on anacs_charsvalue of odd length. The value now matchesinfocmp: an unpaired last byte stays at the end, and when a source character repeats, the last pair wins.Printfreads a%format as ncursestparmdoes. Before the verb, a format accepts only the flags, a width and a precision. A width or precision over 10000 drops the flags. Before, a 12-byte string such as%:%%999999XXreturned 1 MB.
Changed
%cignores its width, and%:+is the+operator, as in ncurses.
Thanks to Andrei Beshkov (@aibeshkov), who found these faults with fuzzing.
Full Changelog: v1.3.0...v1.3.1
terminfo v1.3.0
Added
Puts(w, s, lines, baud)writes a capability with its padding applied, astputsin ncurses does. A padding marker, such as the$<100/>in theflashofxterm, now becomes a delay and is not printed (D23).
Changed
LoadreturnsErrFileNotFoundwhen no directory holds the entry (D29).ColorLevelFromEnvreturnsColorLevelBasicfor a terminal with 8 to 255 colors. It returnedColorLevelNonefor 8 or 16 colors (D24).StringCaps,StringCapsShort,ExtStringCapsandExtStringCapsShortleave out each absent capability (D28).capvals.gois generated from ncurses 6.6, and names the release (D26). The constants did not change.
Removed
ErrDatabaseDirectoryNotFound. A caller that compares with it must compare withErrFileNotFound(D29).
Project
- CI runs golangci-lint v2.14.0 (D25).
- The README has the layout, badges and project links of the other xo packages.
The decisions are in docs/PLAN.md.
Full Changelog: v1.2.1...v1.3.0