BBS::FakeOS is a generic, teletype-style engine for simulating retro
operating systems: a scripted boot sequence (BIOS POST, memory test,
banners, typewriter output) followed by an interactive command shell.
Each simulated OS (MS-DOS, CP/M, AmigaDOS CLI, ...) is just a
FakeOS.define { ... } config — prompt, colors, boot block, command table
and an on_unknown fallback — so new OSes are added as configuration, not
code. on_unknown is the natural hook for a conversational/LLM-backed
shell. Exposed as a Flow step (`os <definition>`) alongside tui/app.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Markdown.to_lines now detects GFM tables (header + delimiter row) and
renders them as box-drawn, alignment-aware tables that shrink to fit the
pane width, instead of mangling the rows into a single paragraph.
ScrollView now handles mouse-wheel events, and Window routes wheel
events to the widget under the cursor, so a detail/content pane scrolls
even when keyboard focus is on an adjacent list.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Page#nav sets up up/down key handlers for four common patterns:
nav :menu, size: – wrapping @menu_sel selection
nav :cycle – wrapping @item_sel over @items
nav :list, window: – @item_sel/@scroll with a visible window
nav :scroll, content:, window: – @scroll over arbitrary content
size/window accept an integer or a lambda evaluated on the Context
at runtime, so terminal-size-dependent values work naturally.
TUI#helpers now accumulates into one module instead of replacing it,
so configure methods on page classes can each extend helpers without
clobbering previous calls.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
New drawing primitives:
fill(x:, y:, w:, h:, bg:) — fills a rectangle with background color
screen_fill(bg:) — fills the entire terminal
Box now accepts bg: which fills its interior with a background color.
All drawing methods (text, bar, list, box) now accept raw ANSI escape
strings as style/highlight values in addition to named symbols.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each screen is now a self-contained `page` block with its own `enter`,
`render`, and `key` handlers. Shared logic lives in a `helpers` block
mixed into the render context. A `chrome` block renders persistent UI
(header, sidebar, footer) before every frame.
New context primitives: `go(page)` for transitions, `reload` to re-run
the current page's `enter` block, `printable` key binding for text input.
`FlowRunner#run_tui` now passes the flow context to TUIRunner so username
and other session data are available without reaching into internals.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fetch: loading-indicator + ctx store for API calls
pick: numbered list with selection and sub-flow drill-down
body: word-wrapped article text (strip markdown, reflow)
output: raw string block for complex multi-line content
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>