Skip to content
pi-c Check-in [f99ea5c3ff]
Login

Check-in [f99ea5c3ff]

Overview
Comment:tui: consume terminal replies, pick light or dark from OSC 11, signal when a reply is ready

The decoder consumes OSC, DCS, APC, PM and SOS replies while a probe is outstanding and every private CSI reply (DA1, DA2, DECRQM, kitty flags, colour scheme reports) always, so an answer never reaches the editor as an Escape and typed text. At start pic asks for the background colour and DA1, waits up to 150 ms for DA1, and keeps the reply window open for a second; the answer decides system and light/dark themes ahead of COLORFGBG. Focus reports (DECSET 1004) gate a BEL plus OSC 9 (OSC 777 in foot and VTE) when a turn ends; the notifyWhenDone setting turns it off.

Timelines: family | ancestors | descendants | both | ghostty-fixes
Files: files | file ages | folders
SHA3-256: f99ea5c3ff59164c065d9cdb1704d4c3558a97fc85ddc7ace7052c94de4003a4
User & Date: dmestas on 2026-11-22 11:08:00.697
Other Links: branch diff | manifest | tags
Context
2026-11-22
12:05
Merge trunk into ghostty-fixes check-in: 38caa2ae51 user: dmestas tags: ghostty-fixes
11:08
tui: consume terminal replies, pick light or dark from OSC 11, signal when a reply is ready

The decoder consumes OSC, DCS, APC, PM and SOS replies while a probe is outstanding and every private CSI reply (DA1, DA2, DECRQM, kitty flags, colour scheme reports) always, so an answer never reaches the editor as an Escape and typed text. At start pic asks for the background colour and DA1, waits up to 150 ms for DA1, and keeps the reply window open for a second; the answer decides system and light/dark themes ahead of COLORFGBG. Focus reports (DECSET 1004) gate a BEL plus OSC 9 (OSC 777 in foot and VTE) when a turn ends; the notifyWhenDone setting turns it off. check-in: f99ea5c3ff user: dmestas tags: ghostty-fixes

2026-11-21
22:42
land amal-build check-in: 0a50cbedbd user: pi-c-lander tags: trunk
Changes