diff options
| author | Gabriel Schneider <[email protected]> | 2026-08-18 17:53:18 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-18 23:45:58 -0300 |
| commit | dba1ab69e5f38d8daf9312ab2d343b36fa078162 (patch) | |
| tree | 463e64302f3f287d4d963c0d32f9b8a880696a94 /src/builtins.zig | |
| parent | 58aae9a1f7aca8e64814c8775b0c17bf93f4da0f (diff) | |
| download | pardes-dba1ab69e5f38d8daf9312ab2d343b36fa078162.tar.gz pardes-dba1ab69e5f38d8daf9312ab2d343b36fa078162.zip | |
term_pane + builtins: terminal pane work, builtins/config additions, snapshots
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 11 |
1 files changed, 11 insertions, 0 deletions
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; |
