mirror-ghostty/src/terminal
Mitchell Hashimoto 2e7aa047af
terminal: port device_status to stream_terminal Effects
Previously device_status was in the ignored "no terminal-modifying
effect" group in stream_terminal.zig. This ports it to use the
Effects pattern, handling all three DSR request types.

Operating status and cursor position are handled entirely within
stream_terminal since they only need terminal state and write_pty.
Cursor position respects origin mode and scrolling region offsets.

Color scheme adds a new color_scheme effect callback that returns
a ColorScheme enum (light/dark). The handler encodes the response
internally, keeping protocol knowledge in the terminal layer. A
new ColorScheme type is added to device_status.zig so the terminal
layer does not depend on apprt.
2026-03-23 14:31:47 -07:00
..
c terminal: rename ReadonlyStream to TerminalStream 2026-03-23 14:17:10 -07:00
kitty core: add new OSC parser 2026-01-08 13:50:43 -06:00
osc terminal/osc: don't export context/semantic prompts to libvt yet 2026-03-13 20:06:33 -07:00
res terminal: adjust page capacity for graphemes if necessary 2024-03-22 20:28:04 -07:00
search terminal: make stream processing infallible 2026-03-13 13:56:14 -07:00
tmux Fix tmux control parser premature %end/%error block termination (#11597) 2026-03-17 10:32:14 -07:00
PageList.zig fix jump_to_prompt forward behavior for multiline prompts 2026-03-10 10:47:18 -07:00
Parser.zig fix(terminal): bounds check params in DCS passthrough entry 2026-02-28 21:11:40 -08:00
Screen.zig remove obsolete impossible test scenario 2026-02-02 15:20:36 -08:00
ScreenSet.zig vt: add ghostty_terminal_get for reading terminal state 2026-03-19 11:47:55 -07:00
Selection.zig terminal: explicit error sets in Screen and ScreenSet 2026-01-21 11:34:59 -08:00
StringMap.zig terminal: bound link regex search work with Oniguruma retry limits 2026-03-04 21:02:55 -08:00
Tabstops.zig tripwire: change backing store from ArrayHashMap to EnumMap 2026-01-21 15:30:49 -08:00
Terminal.zig terminal: store title set by escape sequences 2026-03-23 14:17:10 -07:00
UTF8Decoder.zig core: use std.testing.expectEqualStrings where appropriate 2025-07-22 13:08:24 -05:00
ansi.zig terminal: cursor style 2025-10-24 07:26:04 -07:00
apc.zig Remove unused imports 2025-11-27 13:37:53 -08:00
bitmap_allocator.zig terminal: add helpers to BitmapAllocator for sizing 2026-01-31 08:47:14 -08:00
build_options.zig build: use build options to configure terminal C ABI mode 2025-09-28 14:17:51 -07:00
charsets.zig perf: inline trivial charset lookup 2025-11-19 15:17:05 -07:00
color.zig improve light theme detection 2026-02-19 20:17:47 -08:00
csi.zig terminal: many more conversions 2025-10-23 21:10:25 -07:00
cursor.zig start extracting core terminal zig module 2025-09-21 19:39:58 -07:00
dcs.zig terminal: move tmux into folder 2025-12-03 13:27:36 -08:00
device_status.zig terminal: port device_status to stream_terminal Effects 2026-03-23 14:31:47 -07:00
focus.zig vt: expose focus encoding in C and Zig APIs 2026-03-16 14:38:19 -07:00
formatter.zig terminal/formatter: safely cast discarding.count to usize 2026-03-14 15:29:53 -07:00
hash_map.zig Lots of duplicate word typos + typo. 2026-03-16 09:19:09 +11:00
highlight.zig terminal/search: screen search prunes history for no-scrollback screens 2026-01-08 20:48:19 -08:00
hyperlink.zig terminal: more strict sizing for page capacities, max cap can fit 64-bit 2026-01-16 13:07:32 -08:00
kitty.zig terminal: support disabling kitty graphics protocol 2025-09-21 19:40:00 -07:00
main.zig terminal: rename ReadonlyStream to TerminalStream 2026-03-23 14:17:10 -07:00
modes.zig vt: expose terminal modes to C API 2026-03-16 16:01:53 -07:00
mouse.zig terminal: guard ghostty.h checks on building the app 2026-03-23 09:03:21 -07:00
osc.zig terminal: guard ghostty.h checks on building the app 2026-03-23 09:03:21 -07:00
page.zig terminal: support VirtualAlloc for page allocation on windows 2026-03-23 10:04:43 -07:00
parse_table.zig Remove unused imports 2025-11-27 13:37:53 -08:00
point.zig terminal: convert Point to lib.Enum/lib.TaggedUnion with C header 2026-03-19 14:01:11 -07:00
ref_counted_set.zig terminal: page.exactRowCapacity 2026-01-19 09:16:49 -08:00
render.zig terminal: default render state foreground to white 2026-03-21 20:24:02 -07:00
search.zig terminal: switch search to use flattened highlights 2025-11-24 19:55:27 -08:00
sgr.zig terminal: handle trailing colon in SGR underline parsing 2026-03-01 15:28:56 -08:00
size.zig terminal: more strict sizing for page capacities, max cap can fit 64-bit 2026-01-16 13:07:32 -08:00
size_report.zig vt: expose size_report encoding in the C API 2026-03-17 16:33:57 -07:00
stream.zig terminal: rename ReadonlyStream to TerminalStream 2026-03-23 14:17:10 -07:00
stream_terminal.zig terminal: port device_status to stream_terminal Effects 2026-03-23 14:31:47 -07:00
style.zig libghostty: add resolved bg_color and fg_color to cells API 2026-03-21 20:30:01 -07:00
tmux.zig terminal/tmux: start viewer state machine 2025-12-08 07:00:43 -08:00
x11_color.zig terminal: handle CRLF line endings in rgb.txt parsing 2026-03-23 10:15:16 -07:00