Skip to content

v0.12.35

Choose a tag to compare

@github-actions github-actions released this 30 Oct 10:26
· 10 commits to main since this release
919868a

v0.12.35 — no more 5-second wait at startup on a silent terminal

On a terminal that does not answer the background-colour query (the Linux console, a serial line, script with no terminal behind it, some multiplexer setups), every start of logscry waited 5 seconds before doing anything, --version and --plain included. The terminal UI library asks the terminal for its background colour while the program loads, and waited up to 5 seconds for an answer that never came. Present since the TUI was introduced.

Found while working on #100.

What changed:

  • --version and --plain no longer ask the terminal anything and start at once.
  • The TUI still asks, so its colours keep adapting to dark and light backgrounds, but now waits at most 1 second, then assumes a dark background (or uses COLORFGBG if set).
  • On terminals that answer (most of them), nothing changes: same timing, same colours.
  • Windows is unchanged.
  • Built with go1.26.10.

Measured (median of 10, on a terminal that never answers):

  • logscry --version: 5.05 s → 0.04 s.
  • --plain: 5.05 s → 0.04 s.
  • The TUI's first frame: 5.05 s → 1.05 s.
  • On terminals that answer dark or light: identical timings and identical colours to v0.12.34.

Install: download the binary for your OS from the assets below, or go install github.com/maxie7/logscry/cmd/logscry@latest.

Known limitations:

  • On a terminal that answers nothing, the TUI still waits up to 1 second at start.
  • #N: the TUI package's tests do not compile on macOS and Windows; the binary itself is unaffected.
  • The full list is in the README's Known limitations.

Tracked as #155.