From 98f84f99e79cccc2344aff2efe10823540d0c7b7 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 03:06:49 -0300 Subject: plain: the records the core and the terminal both name, a leaf module (docs/next-terminal.md, Phase 1, its first step): src/plain/plain.zig takes Color, FontRole, CellStyle, Cell, RectPx, RectCell, Raster and Placement from surface.zig and Key from Event.zig, moved as they are, and imports std alone; surface.zig and Event.zig re-export them under their old names, so no caller changes; src/term/'s files name them through `plain` (pager.zig and TerminalImages.zig no longer reach surface.zig); build.zig's wireCore gives every core module the `plain` import; locations.Row stays (it names look.Spot and walk's digest: not free); core-test 985 of 985, lib-test --- src/term/pager.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/term/pager.zig') diff --git a/src/term/pager.zig b/src/term/pager.zig index dca57024..c4dbf721 100644 --- a/src/term/pager.zig +++ b/src/term/pager.zig @@ -5,8 +5,9 @@ //! motion, OSC titles and hyperlinks, modes). The spans are display state //! of the pane only: no 9P file reads them (File.recolorSyntax draws them). const std = @import("std"); +const plain = @import("plain"); const pardes = @import("../pardes.zig"); -const CellStyle = @import("../surface.zig").CellStyle; +const CellStyle = plain.CellStyle; const ghostty_vt = @import("ghostty-vt"); /// Bytes `start..end` of the text, drawn in `style`. A palette colour stays -- cgit v1.3