ElmTUI Workbench
The Workbench is an ElmTUI application for editing and evaluating Common Lisp in the terminal. It is both a useful developer tool and a deliberately demanding demonstration of the framework's state management, layout, command handling, terminal input and incremental presentation.
(2 3 4)
CL-USER> (describe 'defun)
Symbols
ASDF systems
Diagnostics
Design
The interactive Workbench joins:
- Editable multiline REPL with form-aware input and a transcript.
- Symbol completion with a cursor-anchored selection menu and delayed documentation.
- Package and image inspector for loaded packages, exported symbols, globals and ASDF systems.
- Diagnostics and tagged evaluation results, with a worker keeping the interface responsive during evaluation.
- Terminal lifecycle management in the normal buffer with restored terminal attributes; no alternate-screen mode.
The evaluation backend is an in-process, trusted Lisp image. It is not a sandbox. Slynk is an optional integration adapter, not a mandatory dependency, and a remote listener is not started by default.
Run it
git submodule update --init --recursive
clpm bundle install
./scripts/examples.sh run repl
# Alternatively, launch the same Workbench system directly:
clpm bundle exec --with-client sbcl -- \
--noinform --non-interactive \
--load examples/workbench.lisp
Expected controls in the current implementation:
| Key | Action |
|---|---|
| Enter | Evaluate a balanced form or continue editing an incomplete form |
| Ctrl+Space | Request completion (terminal protocol permitting) |
| Tab / Up / Down | Accept or navigate completion |
| F2 | Focus image inspector |
| F3 | Toggle documentation |
| F4 | Diagnostics |
| Ctrl+C | Request cooperative cancellation |
| Ctrl+D | Exit on empty editor |
Release qualification
The Workbench uses ElmTUI's model/update/view runtime and native flex panes for transcript, editor, completion and inspector. It has no application-owned character-grid painter. Styled Unicode, wide/combining text, cursor placement and completion above the editor have local rendered-buffer and PTY regression coverage. It does not provide full Lisp syntax highlighting. The final pinned release build still requires qualification at its exact source/submodule revisions, and an authentic screenshot remains pending. See release status.
What it demonstrates
This application exercises the ElmTUI model/update/view architecture for more than a one-screen demo: keyboard focus, asynchronous evaluation messages, completion generation IDs, timed documentation, image inspection and multi-column layouts.
Read the detailed Workbench guide and architecture foundations. For a simpler introduction, start with the counter tutorial.