From 87d9d6e3fe7122d4a2ff507d6561eebfa569f8e7 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 16:53:45 -0300 Subject: Tty9p and its pardes-v9fs helper removed (the user: a one-off), a terminal with the session kernel-mounted through Linux v9fs: the builtin and its SPC n 9, the spawn's mounted path and the pane's flag, the host's helper launch, src/linux/v9fs.zig and its build and install, test/v9fs.py, v9fs_driver_test.py and v9fs_terminal.py with their three steps, the docs (the build notes keep how to mount a session by hand); the builtin lists regenerated; core, fs-unit, pane, behaviour and process tests, the gui build and all 113 snap scripts pass; ~/.local/bin/pardes-v9fs, installed before, is left Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/exec.zig | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) (limited to 'src/exec.zig') diff --git a/src/exec.zig b/src/exec.zig index af312c45..ad051c32 100644 --- a/src/exec.zig +++ b/src/exec.zig @@ -43,10 +43,6 @@ pub fn takesCommandLine(p: *const Pardes, id: usize) bool { // (Text in pardes's own edit buffer is not the shell's yet: an exec of // it, or of anything, types only what it runs.) if (panes.terminal.promptInputReady(pane) and !panes.terminal.promptInputEmpty(pane)) return false; - // A mounted shell sits behind sudo's process supervisor. Its OSC 133 - // prompt marks identify input readiness; the launcher's executable is - // not the shell executable used by the ordinary process heuristic. - if (pane.v9fs_on_spawn) return panes.terminal.promptInputReady(pane); return !p.hostTtyTaken(id); } @@ -405,29 +401,6 @@ fn askWrite(p: *Pardes, id: usize, serial: u32, path: []const u8) void { /// Tty: a shell in the caller's directory, raw from the first frame, /// stacked below the caller like Alt-n's new shell. pub fn spawnTty(p: *Pardes, from: usize) ?*Pane { - return spawnTtyWithMount(p, from, false); -} - -pub fn spawnV9fsTty(p: *Pardes, from: usize) void { - if (comptime !hosted) return p.reportError(from, "Tty9p", error.LinuxRequired); - // The session's host's and its 9P server's: a replica, of another - // build too (a Linux client of a FreeBSD session), has their answers. - if (!pardes.tape.authority(onLinux, .{})) - return p.reportError(from, "Tty9p", error.LinuxRequired); - if (!pardes.tape.authority(servesSocket, .{p})) - return p.reportError(from, "Tty9p", error.SessionSocketRequired); - _ = spawnTtyWithMount(p, from, true); -} - -fn onLinux() bool { - return @import("builtin").os.tag == .linux; -} - -fn servesSocket(p: *Pardes) bool { - return p.fs.socket_path.len != 0; -} - -fn spawnTtyWithMount(p: *Pardes, from: usize, v9fs: bool) ?*Pane { // No pane asking (an empty window's tag): the session's directory, as // New's scratch is. // A directory that is not there makes no terminal: its shell could not @@ -451,8 +424,7 @@ fn spawnTtyWithMount(p: *Pardes, from: usize, v9fs: bool) ?*Pane { p.reportError(from, "Tty", err); return null; }; - nt.greet = !v9fs; - nt.v9fs_on_spawn = v9fs; + nt.greet = true; nt.body.mode = .tty; placeNew(p, from, from, free, .shell); if (refusedPlacement(p, free)) { -- cgit v1.3