diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-24 14:02:39 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 15:02:07 -0300 |
| commit | 2c670371a21cde5ab506eda02dc2233e20fc1fe1 (patch) | |
| tree | 5b5b09ac6b1bf40dd739d7ad9e21325763336455 /src/gui.zig | |
| parent | 685b8c8e74c9edbdf701594f50ff1b70ac288ec9 (diff) | |
| parent | fcfe51b6507ade9c72f94e40ee5c31a8ee818e30 (diff) | |
| download | pardes-2c670371a21cde5ab506eda02dc2233e20fc1fe1.tar.gz pardes-2c670371a21cde5ab506eda02dc2233e20fc1fe1.zip | |
docs: note native web client + WASM-only text logic in ideas.typ
Diffstat (limited to 'src/gui.zig')
| -rw-r--r-- | src/gui.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui.zig b/src/gui.zig index f170e1a6..1947cd75 100644 --- a/src/gui.zig +++ b/src/gui.zig @@ -34,6 +34,7 @@ extern "c" fn forkpty(amaster: *c_int, name: ?[*:0]u8, termp: ?*const anyopaque, extern "c" fn execv(path: [*:0]const u8, argv: [*:null]const ?[*:0]const u8) c_int; extern "c" fn chdir(path: [*:0]const u8) c_int; extern "c" fn _exit(status: c_int) noreturn; +extern "c" fn setenv(name: [*:0]const u8, value: [*:0]const u8, overwrite: c_int) c_int; extern "c" fn emscripten_get_element_css_size(target: [*:0]const u8, width: *f64, height: *f64) c_int; const EMSCRIPTEN_RESULT_SUCCESS: c_int = 0; @@ -864,6 +865,9 @@ fn runNative(init: std.process.Init, opts_in: pardes.Options) !void { // shells emit OSC 133 prompt marks via this rc (prompt hiding, click-move) writeFile(pardes.bash_rc); + // macos: apple's bash 3.2 prints the zsh-deprecation banner into every + // pane unless this is in the env BEFORE bash starts (the rc is too late) + if (comptime builtin.os.tag.isDarwin()) _ = setenv("BASH_SILENCE_DEPRECATION_WARNING", "1", 1); var ptys: [pardes.MAX_PANES]?Pty = @splat(null); // per-slot spawn generation: drops a dead shell's late output/eof when its @@ -1280,6 +1284,9 @@ fn runGrid(init: std.process.Init, opts_in: pardes.Options) !void { core.update(.{ .resize = .{ .cols = grid_cols, .rows = grid_rows } }); writeFile(pardes.bash_rc); + // macos: apple's bash 3.2 prints the zsh-deprecation banner into every + // pane unless this is in the env BEFORE bash starts (the rc is too late) + if (comptime builtin.os.tag.isDarwin()) _ = setenv("BASH_SILENCE_DEPRECATION_WARNING", "1", 1); var ptys: [pardes.MAX_PANES]?Pty = @splat(null); // per-slot spawn generation: drops a dead shell's late output/eof when its |
