From d0ba070a87c54c538e5f788485391b0af927d0fb Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 6 Jul 2026 20:36:38 -0300 Subject: boot with a single shell pane (was three). Options.shells (default 1; >=3 gives the classic two-column boot), -n CLI flag. The 26 legacy snap scripts pin -n 3 on their start line so their coordinates and goldens stay valid; boot.snap tests the new default (golden regenerated: one full-width pane). 28/28 green. --- src/main.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index 9a8cd6da..56d04669 100644 --- a/src/main.zig +++ b/src/main.zig @@ -33,6 +33,7 @@ const help_text = \\ \\Options: \\ --tty start as one shell pane already in tty mode + \\ -n initial shell panes: 1 (default) or 3 (classic) \\ --tty-toggle use Ctrl- to enter/leave tty mode \\ -l load a dump of another instance (see Dump) \\ -h, --help show this help and exit @@ -78,6 +79,10 @@ fn nativeMain(init: std.process.Init) !void { i += 1; if (i >= args.len) return error.BadArgs; opts.tty_toggle = parseCtrlKey(args[i]) orelse return error.BadArgs; + } else if (std.mem.eql(u8, a, "-n")) { + i += 1; + if (i >= args.len) return error.BadArgs; + opts.shells = std.fmt.parseInt(u8, args[i], 10) catch return error.BadArgs; } else if (std.mem.eql(u8, a, "-l")) { i += 1; if (i >= args.len) return error.BadArgs; -- cgit v1.3