From dba1ab69e5f38d8daf9312ab2d343b36fa078162 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 18 Aug 2026 17:53:18 -0300 Subject: term_pane + builtins: terminal pane work, builtins/config additions, snapshots --- src/builtins.zig | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/builtins.zig') diff --git a/src/builtins.zig b/src/builtins.zig index 3f1c5f85..ca3cf931 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -569,6 +569,17 @@ pub const Del = struct { } }; +/// Project this terminal's displayed cell foregrounds and backgrounds through +/// the current Pardes theme. The emulator keeps its original colour state; +/// only this pane's rendered cells change, so OSC queries and later resets +/// remain truthful. +pub const Filter = struct { + pub fn run(c: Ctx) void { + if (!c.pane.isTerminal()) return; + c.pane.tty_filter = !c.pane.tty_filter; + } +}; + pub const Delcol = struct { pub fn run(c: Ctx) void { const f = c.p.layoutFindTerm(c.id) orelse return; -- cgit v1.3