Skip to content
pi-c View Ticket
Login

View Ticket

2026-11-29
07:22 • Ticket [c453ee4fb2] ghostty-pic: terminal lessons from Ghostty for pic's TUI status still Closed with 2 other changes artifact: b5b40023d0 user: dmestas
07:21 • Closed ticket [c453ee4fb2]. artifact: 9822978887 user: dmestas
2026-11-22
12:43 • Ticket [c453ee4fb2]: 2 changes artifact: c976b6e25e user: dmestas
2026-11-21
21:18 • Ticket [c453ee4fb2]: 1 change artifact: cabbe3e0c4 user: quarry
11:58 • New ticket [c453ee4fb2]. artifact: f71e2b1f65 user: dmestas

ghostty-pic: terminal lessons from Ghostty for pic's TUI

Closedc453ee4fb26eb11dc2fdec61c09dbbe5fdf06775Created 9.5 days agoUpdated 1.7 days ago
Description2026-11-21 11:58:55
Study: https://artifacts.craftdesign.group/v/gHjETGgFwTMdRBUvmBMT9#4eae2744a7f72ea1ad96381e2426ce0e625075df53a1b767f4133eb1db932a18 Top items: (1) parse terminal replies (OSC/DCS currently decode as Esc plus typed text, src/tui/term.c:391) and probe capabilities at startup ending with DA1; (2) done/blocked signal: BEL + OSC 9 on agent_end, OSC 9;4 progress while working (re-send; Ghostty drops it after 15 s); (3) light/dark from OSC 11 query + mode 2031 instead of COLORFGBG only (theme.c:627); (4) grapheme-cluster widths (mode 2027) for ZWJ/skin-tone/VS16/keycap emoji in width.c and editor.c; (5) enable kitty keyboard protocol flag 1 (already decoded); (6) libghostty-vt as a screen oracle for TUI tests. Items 1-3 first.
2026-11-22 12:43:46

Items 1-3 landed in #88: terminal replies are parsed and consumed (with a timeout), the agent-finished notification when pic is unfocused (setting to turn it off), and light/dark theme from the terminal background. The ticket stays open for the remaining items.

2026-11-29 07:21:52

Closed by !223: tui-follow landing on trunk (8a45259875fd)

2026-11-29 07:22:41

Items 4 and 5 landed in 52a9a6898604. Item 6 (libghostty-vt as a test oracle) is not done: it would add a dependency, which pic avoids.