diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-22 16:50:34 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-22 16:53:19 -0300 |
| commit | 9863a63b614d200852853825031189364dcacfdc (patch) | |
| tree | d235648a2ac14b3e311746ced3433ed6865e2061 /core/term/term.zig | |
| parent | 6544f73a6b50e5ba68564beea7784593bb54348e (diff) | |
| parent | bad506bd45846e012246a33b5d3097b3e92f02bc (diff) | |
| download | pardes-9863a63b614d200852853825031189364dcacfdc.tar.gz pardes-9863a63b614d200852853825031189364dcacfdc.zip | |
integration: the old road deleted and the emulator's boundary on the gathered line: pardes-merge56 (`qvwrwxtu`: the installed tree and the source view's changes to their last slice) and pardes-term-join-9 (`twssqzqw`, fourteen changes on pardes-merge55: every client's terminals by the pty's bytes and nothing else: the delta protocol, its flow control and core/term/screen_state.zig deleted (-3,605 +504 lines), the wire at 30, one soak; S1: abi/term.zig's Ops in replicated and local, the terminal's digest covering what a step reads, every call of the core's into a terminal listed with its rule as a test; a client's own join again judged after its goodbye; a pty's size one fact the core hands its host for every fork, adopt and resize; a closed view sizes no terminal); no textual conflict; one semantic one, resolved here: core/jj.zig's Churn test (the layers' last round) called Authority.init and Replica.init with the road's flag the deletion took away: the argument removed; core-test 916/1073 (157 skipped), shell-test 1115/1118; its gate: .scratch/sketch/reorg/merge57, the numbers in PARDES.md (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/term/term.zig')
| -rw-r--r-- | core/term/term.zig | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/core/term/term.zig b/core/term/term.zig index 59511727..058154a7 100644 --- a/core/term/term.zig +++ b/core/term/term.zig @@ -1,7 +1,7 @@ //! The terminal, a module of its own (docs/next-terminal.md, Phase 1): //! ghostty-vt's emulator and what pardes keeps beside it (terminal.zig), -//! the screen state its replicas are sent (screen_state.zig), the kitty -//! images it draws (TerminalImages.zig) and the pager's parse (pager.zig). +//! the kitty images it draws (TerminalImages.zig) and the pager's parse +//! (pager.zig). //! It imports std, ghostty-vt, wuffs, zstbi and `plain`, never the core: //! the core reaches it through `ops` (core/Term.zig), the records of //! abi/term.zig in and out. @@ -10,11 +10,8 @@ const plain = @import("plain"); const iface = plain.term; const terminal_ = @import("terminal.zig"); const pager = @import("pager.zig"); -const screen_state_ = @import("screen_state.zig"); const TerminalImages = terminal_.TerminalImages; -/// The screen state replicas are sent, its streams and soak (test/replicas.zig). -pub const screen_state = screen_state_; /// The emulator itself, for the tests that read it through a core /// (test/terminal.zig). pub const terminal = terminal_; @@ -39,7 +36,6 @@ pub const ops: iface.Ops = .{ .scroll = cast(iface.Ops, "scroll", terminal_.scroll), .follow = cast(iface.Ops, "follow", terminal_.follow), .resize = cast(iface.Ops, "resize", terminal_.resize), - .resizeDeferred = cast(iface.Ops, "resizeDeferred", terminal_.resizeDeferred), .cellPixels = cast(iface.Ops, "cellPixels", terminal_.cellPixels), .replies = cast(iface.Ops, "replies", terminal_.replies), .key = cast(iface.Ops, "key", terminal_.key), @@ -57,7 +53,6 @@ pub const ops: iface.Ops = .{ .viewport = cast(iface.Ops, "viewport", terminal_.viewport), .editRows = cast(iface.Ops, "editRows", terminal_.editRows), .promptCut = cast(iface.Ops, "promptCut", terminal_.promptCutAt), - .markRead = cast(iface.Ops, "markRead", terminal_.markRead), .echoCell = cast(iface.Ops, "echoCell", terminal_.echoCell), .page = pager.parse, .filter = terminal_.pagerFilter, @@ -65,32 +60,12 @@ pub const ops: iface.Ops = .{ .paint = cast(iface.Ops, "paint", terminal_.paint), .images = cast(iface.Ops, "images", terminal_.images), .hasImages = cast(iface.Ops, "hasImages", terminal_.hasImages), - .encoder = cast(iface.Ops, "encoder", terminal_.encoder), - .encoderFree = cast(iface.Ops, "encoderFree", terminal_.encoderFree), - .track = cast(iface.Ops, "track", terminal_.track), - .untrack = cast(iface.Ops, "untrack", terminal_.untrack), - .encode = cast(iface.Ops, "encode", terminal_.encode), - .encodeRows = cast(iface.Ops, "encodeRows", terminal_.encodeRows), - .wasRead = cast(iface.Ops, "wasRead", terminal_.wasRead), - .clearRead = cast(iface.Ops, "clearRead", terminal_.clearRead), - .replica = cast(iface.Ops, "replica", terminal_.replica), - .replicaFree = cast(iface.Ops, "replicaFree", terminal_.replicaFree), - .replicaTop = cast(iface.Ops, "replicaTop", terminal_.replicaTop), - .missing = cast(iface.Ops, "missing", terminal_.missing), - .apply = cast(iface.Ops, "apply", terminal_.apply), - .applyRows = cast(iface.Ops, "applyRows", terminal_.applyRows), - .shown = cast(iface.Ops, "shown", terminal_.shown), - .blank = cast(iface.Ops, "blank", terminal_.blank), - .dumpScreen = cast(iface.Ops, "dumpScreen", terminal_.dumpScreen), }; /// The term's handle types as the interface names them, and the module's /// own behind each: a pointer to one is a pointer to the other. const handles = .{ .{ iface.State, terminal_.State }, - .{ iface.Encoder, screen_state_.Encoder }, - .{ iface.Track, screen_state_.Track }, - .{ iface.Replica, screen_state_.Replica }, }; /// The interface's handle for one of this module's own types, or the type @@ -160,5 +135,4 @@ test { _ = &ops; _ = terminal_; _ = pager; - _ = screen_state_; } |
