summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/pardes.zig')
-rw-r--r--src/pardes.zig19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 6c5a01af..4c1d0a10 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -965,25 +965,6 @@ test "a terminal respawned into a closed pane's slot hangs the old shell up firs
try std.testing.expect(closed and spawned);
}
-test "Tty9p marks only the new Linux terminal for a mounted shell" {
- if (comptime !hosted or @import("builtin").os.tag != .linux) return error.SkipZigTest;
- const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true });
- defer p.deinit();
- p.fs.socket_path = "/tmp/pardes-test.sock";
- try std.testing.expect(p.executeBuiltinLine(0, "Tty9p"));
- try std.testing.expect(p.active != 0);
- try std.testing.expect(!p.panes[0].?.v9fs_on_spawn);
- const pane = p.panes[p.active].?;
- try std.testing.expect(pane.isTerminal() and pane.body.mode == .tty);
- try std.testing.expect(pane.v9fs_on_spawn);
- try std.testing.expect(!pane.greet);
- try std.testing.expect(!exec.takesCommandLine(p, p.active));
- panes.terminal.feedOutput(p, pane, "\x1b]133;A\x07$ \x1b]133;B\x07");
- try std.testing.expect(exec.takesCommandLine(p, p.active));
- panes.terminal.feedOutput(p, pane, "\x1b]133;C\x07");
- try std.testing.expect(!exec.takesCommandLine(p, p.active));
-}
-
test "first document fallback splits like Tty from the originating pane" {
for ([_]u16{ 100, 198 }) |width| for (0..3) |from| {
for ([_]bool{ false, true }) |collapsed| {