Skip to content

terminfo v1.3.1

Latest

Choose a tag to compare

@kenshaw kenshaw released this 04 Nov 23:00

Fixed

  • Decode returns ErrInvalidHeader for a negative count in the main header, as ncurses does. Before, such a file panicked.
  • Decode no longer panics on an acs_chars value of odd length. The value now matches infocmp: an unpaired last byte stays at the end, and when a source character repeats, the last pair wins.
  • Printf reads a % format as ncurses tparm does. 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 %:%%999999XX returned 1 MB.

Changed

  • %c ignores 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