From b975f1e860c53c1f6f8978a249151c6cbe48d78f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 14 Feb 2025 15:13:53 -0800 Subject: [PATCH] cli: disable +boo on non-desktop platforms due to lack of tty --- src/cli/boo.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cli/boo.zig b/src/cli/boo.zig index 4289668d24..7ecbf79fbb 100644 --- a/src/cli/boo.zig +++ b/src/cli/boo.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const builtin = @import("builtin"); const args = @import("args.zig"); const Action = @import("action.zig").Action; const Allocator = std.mem.Allocator; @@ -173,6 +174,12 @@ const Boo = struct { /// The `boo` command is used to display the animation from the Ghostty website in the terminal pub fn run(gpa: Allocator) !u8 { + // Disable on non-desktop systems. + switch (builtin.os.tag) { + .windows, .macos, .linux => {}, + else => return 1, + } + var opts: Options = .{}; defer opts.deinit();