summaryrefslogtreecommitdiff
path: root/src/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/builtins.zig')
-rw-r--r--src/builtins.zig8
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 {