summaryrefslogtreecommitdiff
path: root/src/pager.zig
Commit message (Collapse)AuthorAge
* pager: a +Pager reads its program's output with its own parser, so pager.zig ↵Gabriel Schneider20 hours
| | | | stops importing ghostty-vt: ECMA-48's states as ghostty-vt's table has them (C0 acted on in an escape or a CSI, dropped in a string, the C1 bytes' transitions outside an OSC's and a DCS's data, CAN and SUB), UTF-8 with each ill-formed part one U+FFFD and a sequence the input ends inside not printed, a CSI's parameters at ghostty's limits (24, saturating, colons only for SGR), and SGR read as its sgr.Parser reads it (colon colours with and without a colour space, 38;5 short of its index, unknown colon lists skipped, 58 consumed); CNL and CPL's return, CHT and REP as before; the Handler's printing, spans and overstrike are unchanged and still take a run of code points at a time; against the ghostty-driven parse, 400,040 pages (39 fixed: the tests' 17 inputs and 22 malformed, truncated and 8-bit cases; 400,000 random pages of escapes, parameters, controls, C1 bytes and UTF-8 fragments, a 3,000-line coloured log) came out with the same text and spans, in a test run once then removed; a 32 MiB coloured log parses in 1,997M instructions against 2,049M (98.6 ms against 110.3 ms, ReleaseFast), its printable ASCII going straight into the run; test: the less common forms, pinned (colon colours, 0x9b as a stray byte, CSI and UTF-8 C1, REP, CHT, CNL, 38;5 alone, UTF-8 cut short); the changelog says so
* settings #3, the terminal's three go, each the value it had by default: ↵Gabriel Schneider12 days
| | | | | | | Pager (a terminal's shell pages into a +Pager where the environment names no pager, so PAGER and GIT_PAGER set by the user are what an opt-out is; host_io's Paging.terminal_off goes), PagerColor (a +Pager keeps its program's colours; pager.parse loses its colour argument, its callers in Core.zig and ninep/ctl.zig with it) and TermImages (a new terminal draws its images as pixels where it can, Petscii still flips one; terminal.adoptSettings and its call in panes.zig go); deleted tests: "settings: Pager is pardes by default, off taken, anything else refused with its choices" and "PagerColor off: the same text, no spans, overstrike included" (the man page's overstrike case pins what stays); rewritten: TermImages' test as a new terminal drawing pixels, ctl's pager test with the second +Pager keeping its colours, host_io's environment test for the one terminal paging, process/tree's /commands row on Wrap; the reference, setup and changelog say an environment's PAGER is the way out; no golden changes; gates on tui: core-test 964/964, behaviour-test 241/241, unit-test 1480/1481, pane-test 171/172, snap all 105 scripts ok, process-test 0 of 37 failed; gui unit-test 1524/1525 Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* targets: the ESP32-P4 board port goes (src/esp32p4*.zig and src/esp32p4/, ↵Gabriel Schneider13 days
| | | | | | | -Dplatform=esp32p4 with its pinned riscv32 target, -Desp32p4-cols and -rows, the Peek, Poke, Hexdump and Gpio words and the Board behind them, the board's 9P engine options, the gpio_toggle host slot), and with it every guard and limit only the board needed: terminal_panes and terminal.enabled (ghostty is in every build), memory.limits' board branching (the desktop values stay), MAX_PANES 64 and MAX_COLS 16 fixed, the board's boot buffer and its embedded boot, the pager's and the terminal's emulator-less paths; tests: the board's GPIO, ring and Board ones go, the boot-OOM and transition-grid ones stay under their own names; the perf harness loses the board's fixture, so the Debug baselines of both frontends are recorded again (--only medium --reps 10) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* terminal and pager: SGR's underline style becomes a cell's by a cast, where ↵Gabriel Schneider13 days
| | | | | | | two switches mapped one enum onto the same one; a comptime check in terminal.zig holds the two in one order (`off` the cell's `none`) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* zig fmt for Zig 0.17Gabriel Schneider2026-10-22
|
* Build with Zig 0.17Gabriel Schneider2026-10-22
| | | | | | | | | | | ghostty, libvaxis and uucode move to ghostty's 0.17 pins, cloud9 to its 0.17 main, SDL to castholm's release-3.4.x (3.4.18), zstbi and tree-sitter to forks with 0.17 build files (see build.zig.zon). A bare zig build copies the binaries into ~/.local/bin (-Dhome-install=false leaves it out): 0.17 keeps the prefix from build scripts. A terminal's edited copy goes when the program clears the screen. tinywin.snap is gone; perf baselines are re-recorded. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* A +Pager keeps its program's colours: the session parses what /pager is ↵Gabriel Schneider2026-10-01
written after its directory with ghostty-vt, SGR becomes spans drawn over the plain text, every other escape is dropped, and PagerColor off pages it plain