From a624a56e289e4a02a411f83741f0f2c9fc0f0b2e Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 14 Sep 2026 21:26:47 -0300 Subject: Add Linux Tty9p mounted terminals and forward raw TTY keys --- src/builtins.zig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/builtins.zig') 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 { -- cgit v1.3