Skip to content

Releases

terminfo v1.3.1

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

terminfo v1.3.0

Choose a tag to compare

@kenshaw kenshaw released this 30 Oct 03:26

Added

  • Puts(w, s, lines, baud) writes a capability with its padding applied, as tputs in ncurses does. A padding marker, such as the $<100/> in the flash of xterm, now becomes a delay and is not printed (D23).

Changed

  • Load returns ErrFileNotFound when no directory holds the entry (D29).
  • ColorLevelFromEnv returns ColorLevelBasic for a terminal with 8 to 255 colors. It returned ColorLevelNone for 8 or 16 colors (D24).
  • StringCaps, StringCapsShort, ExtStringCaps and ExtStringCapsShort leave out each absent capability (D28).
  • capvals.go is 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 with ErrFileNotFound (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

terminfo v1.2.1

Choose a tag to compare

@kenshaw kenshaw released this 30 Oct 02:07

Full Changelog: v1.2.0...v1.2.1

terminfo v1.2.0

Choose a tag to compare

@kenshaw kenshaw released this 13 Sep 23:25

Full Changelog: v1.1.0...v1.2.0

⌂ 换网址