Commit Graph
2 Commits
Author SHA1 Message Date
Konrad c87f7290f5 splinter: thinking in the chat pane, no more ?????
Three things the operator asked for, and one bug he found:

1. The reasoning moved out of the sidebar into the left pane, above the answer,
   dimmed - the same place every other harness puts it. While a turn runs it
   scrolls with PgUp/PgDn; afterwards it is appended to the transcript as a
   'thinking' entry (capped at 1500 characters) so it can be read later.

2. ????? - glibc transliterates ß but turns ü into '?', so German answers came
   back as question-mark soup. Letters now come from a table generated out of
   Unicode's decompositions (tools/gen_decomp.py, 266 entries, U+00A0..U+024F,
   German umlauts written out as ae/oe/ue), punctuation goes through iconv
   (— -> --, … -> ...). Verified: 'ein — Gedankenstrich, „Zitat“, Auslassung…'
   becomes 'ein -- Gedankenstrich, ,,Zitat", Auslassung...'.

3. Slices for the viewport now start and end on UTF-8 sequence boundaries: a
   column offset could cut a character in half and draw a replacement glyph.

4. The shell tool ran the JSON as a command. 'run' received
   {"command":"uname -sr"} and handed that string to popen. It now parses the
   arguments (echo too) and falls back to the raw string for the mock transport.
   Proven against kontron: the model called run, the observation was
   'Linux 7.1.3+deb14-amd64 [exit status 0]', and it read that back correctly.

Sixteen test binaries green, test_ascii added for the transliteration.
2026-11-08 07:20:42 +00:00
Konrad d2e06b316d splinter: curses TUI on NetBSD curses, CDE palettes as themes
The harness now has the interface it was missing: a chat pane on three
quarters of the screen, a sidebar on one quarter, a status bar underneath.

- vendor/netbsd-curses: NetBSD's curses and terminfo, ported edition,
  vendored with PROVENANCE.md. The build of that one directory needs GNU
  make; splinter's own Makefile stays POSIX make.
- tools/genpalettes.py turns CDE's *.dp palette files into a C table. 42
  palettes, generated, checked in with the generator, so the source of every
  colour is a file in the CDE tree and not a guess.
- themes: roles are derived, not invented - background is the darkest of the
  eight colour sets, foreground the lightest, border the second darkest,
  accent the most saturated of the rest, status the accent darkened by a
  third. Delphinium is the default. Unknown palette is an error.
- colours map to the terminal through xterm's 256-colour cube when available,
  the 16 basic colours otherwise, so a palette looks the same everywhere
  within what the terminal can show.
- ui.c redraws only on change; the sidebar shows session, transport, theme
  and last-turn numbers. Widgets are a labelled empty area - the registry
  lands next.

Six test binaries green, including test_theme (42 palettes, ordering
invariants, unknown name rejected, colour indices in range).
2026-11-07 11:27:09 +00:00