diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-14 21:26:47 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-15 17:24:42 -0300 |
| commit | a624a56e289e4a02a411f83741f0f2c9fc0f0b2e (patch) | |
| tree | b87e3ca10dd1c4417112164f792b5da1e26de0a6 /src/builtins.zig | |
| parent | 95681ff7017b8a9e4c8f9fa6a7371d1233432f2f (diff) | |
| download | pardes-a624a56e289e4a02a411f83741f0f2c9fc0f0b2e.tar.gz pardes-a624a56e289e4a02a411f83741f0f2c9fc0f0b2e.zip | |
Add Linux Tty9p mounted terminals and forward raw TTY keys
Diffstat (limited to 'src/builtins.zig')
| -rw-r--r-- | src/builtins.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/builtins.zig b/src/builtins.zig index a9728fd9..c483482a 100644 --- a/src/builtins.zig +++ b/src/builtins.zig @@ -465,6 +465,14 @@ pub const Tty = struct { } }; +/// A Linux terminal with the current session mounted through kernel v9fs. +pub const Tty9p = struct { + pub const enabled = pardes.hosted and @import("builtin").os.tag == .linux; + pub fn run(c: Ctx) void { + c.p.spawnV9fsTty(c.id); + } +}; + /// Fold the active pane's column into the one on its right, keeping its panes. /// The horizontal mirror of the vertical stacking `New` does. pub const Joincol = struct { |
