summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 21:19:47 -0300
committerGabriel Schneider <[email protected]>2026-11-04 21:20:02 -0300
commite67a1a561d9a9a7269bcc7c9af5678d3f50a95cb (patch)
tree195593cc6ae9d72fcd1e37f08637c5eb038920be /src/main.zig
parentd6883afab40fb8cfcd40fc6abcde1aaf74b8b108 (diff)
downloadpardes-e67a1a561d9a9a7269bcc7c9af5678d3f50a95cb.tar.gz
pardes-e67a1a561d9a9a7269bcc7c9af5678d3f50a95cb.zip
main: the --tty flag again (it starts one shell pane in tty mode, the pane's raw mode, which the user keeps as tty, not the frontend): --tui and the old-flag case gone, the launch lines, the process runner's startTty and the cases' tty sessions as they were; the changelog says the frontend is the tui (-Dplatform=tui, src/tui/), the Tty builtin is Term and Tty still runs it; core, behaviour, fs-unit, pane and process tests (tui 36 of 36), all 113 snap scripts and the gui build pass
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.zig b/src/main.zig
index 16675265..9092e2f9 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -76,8 +76,7 @@ const help_text =
\\terminal's PAGER), else a new editor's.
\\
\\Options:
- \\ --tui start as one shell pane already in tty mode
- \\ (--tty, its old spelling, too)
+ \\ --tty start as one shell pane already in tty mode
\\ -n <count> initial shell panes: 1 (default) or 3 (classic).
\\ A FILE argument boots just that file instead.
\\ --tty-toggle <key> use Ctrl-<key> to toggle tty/editor mode
@@ -436,7 +435,7 @@ fn nativeMain(std_init: std.process.Init) !void {
var i: usize = if (resuming) 2 else 1;
while (i < args.len) : (i += 1) {
const a = args[i];
- if (std.mem.eql(u8, a, "--tui") or std.mem.eql(u8, a, "--tty")) {
+ if (std.mem.eql(u8, a, "--tty")) {
explicit_tty = true;
} else if (std.mem.startsWith(u8, a, "--tty-toggle=")) {
session_only = false;