diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 21:19:47 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-04 21:20:02 -0300 |
| commit | e67a1a561d9a9a7269bcc7c9af5678d3f50a95cb (patch) | |
| tree | 195593cc6ae9d72fcd1e37f08637c5eb038920be /src | |
| parent | d6883afab40fb8cfcd40fc6abcde1aaf74b8b108 (diff) | |
| download | pardes-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')
| -rw-r--r-- | src/CHANGELOG.md | 5 | ||||
| -rw-r--r-- | src/main.zig | 5 | ||||
| -rw-r--r-- | src/pardes.zig | 2 |
3 files changed, 8 insertions, 4 deletions
diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index f6607176..f21fcacc 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -28,6 +28,11 @@ - `Tty9p` and its `pardes-v9fs` helper are gone (a terminal with the session kernel-mounted through Linux v9fs, a one-off), with their tests; a kernel mount made by hand still works, as the build notes say. +- The terminal frontend is the tui: `zig build -Dplatform=tui`, its code + in `src/tui/` (the binary is still `pardes`, and `--tty` still starts + one shell pane in tty mode). The builtin that opens a terminal pane, + `Tty`, is `Term` (`SPC n t`); `Tty` still runs it, as acme's words run + theirs. - One `pardes --daemon` per user keeps sessions, started by the first session and gone once it keeps nothing. `pardes` in a terminal forks its session off and stays as its stub: `Detach` (`SPC s D`), or a 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; diff --git a/src/pardes.zig b/src/pardes.zig index 89e99a9b..eb27c70c 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -3816,7 +3816,7 @@ pub const Options = struct { /// window's build replaying a terminal's session starts as it did. windowed: bool = platform == .gui, /// The layout to boot, when a host means one outright rather than leaving - /// it to be read off the options below. `--tui` names `.tty`; a core + /// it to be read off the options below. `--tty` names `.tty`; a core /// booted for a test names nothing and gets `.tty_shell`. boot: ?Boot = null, /// initial shell panes: 1 (default) or 3 for the classic two-column boot. |
