summaryrefslogtreecommitdiff
path: root/core/builtins.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/builtins.zig')
-rw-r--r--core/builtins.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/builtins.zig b/core/builtins.zig
index 7122cd02..39c06206 100644
--- a/core/builtins.zig
+++ b/core/builtins.zig
@@ -532,7 +532,7 @@ pub const Restore = struct {
};
/// Detach this pardes from its terminal or window, leaving the session
-/// running: `pardes --attach` (or `pardes-gui --attach`) takes it back.
+/// running: `pardes attach` (or `pardes-gui attach`) shows it as a client.
pub const Detach = struct {
pub const scope: Scope = .session;
pub const enabled = pardes.can_attach;
@@ -747,13 +747,13 @@ pub const Petscii = struct {
pub const takes_arg = true;
pub fn run(c: Ctx) void {
// `on|off` sets it, as the tag's `petscii:on` reads; none flips it.
- const now = if (c.pane.addon) |k| k.art.glyph else panes.Term.petscii(c.pane.terminal) orelse false;
+ const now = if (c.pane.addon) |k| k.art.glyph else c.pane.terminal != null and c.pane.term_petscii;
if (c.arg != null) {
const want = stateArg(c, OnOff, "Petscii", "on or off") orelse return;
if ((want == .on) == now) return;
}
if (c.pane.addon) |k| k.art.glyph = !k.art.glyph;
- if (c.pane.terminal) |state| panes.Term.togglePetscii(state);
+ if (c.pane.terminal != null) c.pane.term_petscii = !c.pane.term_petscii;
}
};