summaryrefslogtreecommitdiff
path: root/test/behaviour/modes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 20:54:21 -0300
committerGabriel Schneider <[email protected]>2026-11-04 21:12:33 -0300
commit0ff1fc99eb870f8a1e714a71c1a853066737c822 (patch)
tree2c8b4720e2ed190e6f9062cfe8586c3da22aeb42 /test/behaviour/modes.zig
parent3b082687c7da1c5d8cc52c71fdf4ddd38d860cd8 (diff)
downloadpardes-0ff1fc99eb870f8a1e714a71c1a853066737c822.tar.gz
pardes-0ff1fc99eb870f8a1e714a71c1a853066737c822.zip
rename: the terminal frontend is the tui (-Dplatform=tui, src/tui/tui.zig, --tui with --tty kept as its old spelling, the process tests' backend .tui and --backend=tui, docs/typ/builtins-tui.json, the Settings report's platform), and the builtin Tty is Term (its registry entry, SPC n t, every default tag, the docs, tests and snap scripts), Tty still run as Term through exec.acme_words, Tty+fish too on a tag and a ctl; tty as a pane's raw mode and as the OS's terminal unchanged
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/behaviour/modes.zig')
-rw-r--r--test/behaviour/modes.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/behaviour/modes.zig b/test/behaviour/modes.zig
index ba792086..961ca788 100644
--- a/test/behaviour/modes.zig
+++ b/test/behaviour/modes.zig
@@ -32,7 +32,7 @@ test "modes: Esc in a column or the workspace tag gives the keyboard back to a p
var s = try Session.initFile(std.testing.allocator, "x\n");
defer s.deinit();
_ = try s.newPane();
- for ([_][]const u8{ "New Tty", "Newcol" }) |tag| {
+ for ([_][]const u8{ "New Term", "Newcol" }) |tag| {
const was = try s.focused();
// A click puts the tag in normal mode, the keyboard there; Esc is
// out of it.
@@ -96,7 +96,7 @@ test "modes: Esc back into a file leaves its view where it was, and a look centr
// The other arm still centres: a look's `:NN`.
const line = 60;
try s.write(s.at("/pane/{d}/look", .{doc}), s.at(":{d}\n", .{line}));
- const rows = (try s.where("Tty Save Mode"))[1] - (try s.where("/test.txt"))[1] - 1;
+ const rows = (try s.where("Term Save Mode"))[1] - (try s.where("/test.txt"))[1] - 1;
// Drawn mid-pane, a row either way.
const drawn_at = line - try topLine(&s, "/test.txt");
try std.testing.expect(drawn_at + 1 >= rows / 2 and drawn_at <= rows / 2 + 1);
@@ -468,7 +468,7 @@ test "modes: hopping between two panes by Esc, window mode or a click makes no p
try expectEqual(want, try s.focused());
}
const doc_row = (try s.where("row"))[1];
- const shell_row = (try s.where("Tty Save Mode"))[1] + 1;
+ const shell_row = (try s.where("Term Save Mode"))[1] + 1;
for (0..8) |_| {
const other = if (try s.focused() == doc) shell else doc;
const row = if (other == doc) doc_row else shell_row;