Skip to content

Releases

ElmTUI 0.4.0

Choose a tag to compare

@fkr-0 fkr-0 released this 01 Nov 04:33

Breaking release that completes the export cleanup from the API review. Every exported ElmTUI symbol now names a real binding (or a registered message/model schema), and the release gate keeps it so. Qualified by the full release gate in CI (run 41273094426).

Breaking changes

  • Curated root package. The root elmtui package exports these 13 application symbols:

    • defapplication, deftea-app
    • make-update-result, state-ref
    • key-pressed-p, quit-requested-p
    • key-event, key-event-p, key-event-key, key-event-char, key-event-modifiers
    • dark-theme, light-theme

    Until now it re-exported by name: 127 of its 128 own exports (elmtui:button, elmtui:vbox, elmtui:with-terminal-lock, …) were fresh, unbound symbols, not the framework's.

  • elmtui:dev-main removed, together with the elmtui system's program-op entry point. Use elmtui.dev:dev-main.

  • 88 never-defined exports removed from 21 packages. These include defmsg's <variant>-p names, statechangemsg, the elmtui.view.core vbox/hbox/text helpers, the elmtui.pipeline stage names and the elmtui.view.geo shapes.

Migration

  • Root package names: code that used other elmtui: names was calling unbound functions. Use the defining packages, for example elmtui.platform.backend.terminal:with-terminal-lock; their symbols are unchanged.
  • Message predicates: use <variant>-<message>-p predicates such as keyevent-appmsg-p instead of <variant>-p.
  • Simpler imports: application code can now import its whole API from the root package:
    (:import-from :elmtui #:defapplication #:make-update-result #:state-ref
                  #:key-pressed-p #:quit-requested-p)

See the README Quickstart and the CHANGELOG.

ElmTUI 0.3.2

Choose a tag to compare

@fkr-0 fkr-0 released this 01 Nov 04:26

Patch release with the non-breaking fixes from the API review. Qualified by the full release gate in CI (run 41272581828).

Fixed

  • deftea-app applications run. Their runners used to draw nothing and fail with a type error on shutdown, and only their macro expansion was tested. deftea-app now expands into defapplication with :strict-elm semantics. Views may still return a :root-viewport tree, and new :anchor/:height keys place the viewport. Ctrl-C, or a model with :should-quit t, quits.
  • State facades export working symbols. elmtui.state and elmtui.state.api used UIOP :reexport, which exports names only and created fresh, unbound symbols. As a result elmtui.state.api:sapply, sref, defupdate and others were unusable. They now re-export the real elmtui.state.update, elmtui.state.model and cl-state symbols.
  • One defapplication. elmtui.app.api:defapplication is now the same symbol as elmtui.app:defapplication.
  • defmsg predicates. defmsg now exports the <variant>-<message>-p predicates it defines. The undefined <variant>-p names are deprecated.
  • tmux-slider arrow keys. In the tmux-slider example, arrow keys no longer quit the app; they change direction and speed.

Added

  • Key and quit predicates. elmtui.app:key-pressed-p (:char, :key, :modifiers) and elmtui.app:quit-requested-p.
  • Logging keys. Generated run-NAME functions accept :log-file and :log-buffer.
  • New release gates:
    • a deftea-app application run in tmux;
    • the README Quickstart run in tmux;
    • a ratchet on unbound exports.
  • A tested README Quickstart, corrected tutorial and foundations chapters, and recorded demo media on the website.

Full details: CHANGELOG.

ElmTUI 0.3.1

Choose a tag to compare

@fkr-0 fkr-0 released this 01 Nov 03:18

ElmTUI is an Elm-architecture terminal UI toolkit for Common Lisp (SBCL, POSIX terminals). 0.3.1 is the first release since 0.2.0. It covers the 0.3.0 feature line and the 0.3.1 fixes. 0.3.0 was never tagged separately.

All three recordings are real sessions: unmodified maintained examples run with scripts/examples.sh run <name> in urxvt and tmux.

Lisp Workbench: REPL, completion and image inspector

Workbench: evaluating forms, symbol completion with signatures, browsing packages and symbols

neon-tetris

neon-tetris clearing seven lines

tmux glider: a Conway glider walking over live pane text

The glider draws over whatever is in the tmux pane and restores every cell, including colours, as it moves on.

A glider crossing a coloured git log and directory listing in tmux

Highlights

tmux normal-screen mode (0.3.1)

  • Apps running in the normal screen under tmux no longer lose or duplicate scrollback when the pane shrinks and grows. The driver keeps a ledger of the real underlay, composites each frame over it and never paints over rows tmux pulled back from history. On exit, the history comes back exactly.
  • The cursor inspector's focus box is drawn at physical pane coordinates.
  • New release gates quit every maintained example, plus a packager-built binary, on top of 70 lines of styled tmux history. Each must exit with status 0, identical stty, a visible cursor and exact scrollback.

Core and tooling (0.3.0)

  • Breaking: the elmtui system no longer loads the example widgets or developer tooling. Load elmtui-example-widgets or elmtui-dev explicitly.
  • The Workbench renders through native flex panes, with fixes for short viewports, tiny resizes and Unicode cell alignment.
  • tmux capture accepts only SGR styling and drops every other control sequence. *tmux-socket* and *tmux-target-pane* address a server and pane you own.
  • Hardened defaults, focus history, DSL validation (invalid-dsl-form), styles and widgets. The wifi-menu example now runs nmcli with a timeout and an output size limit.
  • API-contract and behaviour suites, plus an enforced SB-COVER gate. The coverage badge is published by CI from a green main.

Release qualification

  • CI runs the canonical scripts/release-check.sh: 40 gates covering warning-clean builds, the test suites, coverage, real-PTY and tmux end-to-end tests, the Workbench, a docs/API reference freshness check, a frozen source archive, a cold install and public dependency pins. This tag was qualified by run 41267270185.

Dependencies (git submodules)

library commit
cl-events 798cb3b
cl-inputs 10c75b3a
cl-state 91a29b7
cl-styles e4d64c5

Clone with git clone --recurse-submodules https://github.com/fkr-0/elmtui.git.

Known limitations

  • Qualified on SBCL on POSIX terminals only.
  • tmux reflow of rows wider than a shrunken pane is not modelled.
  • The optional Workbench keeps its own component version (0.1.0).

Full details are in CHANGELOG.md.