const std = @import("std"); const Allocator = std.mem.Allocator; const print = std.debug.print; const types = @import("./lib/types.zig"); const CommandStatus = types.CommandStatus; const CommandContext = types.CommandContext; pub const Cls = struct { pub fn eval(cls: Cls, ctx: CommandContext) !CommandStatus { _ = cls; if (ctx.output_capture == null) { // Clear screen - only works when not redirected print("\x1B[2J\x1B[H", .{}); } return CommandStatus{ .Code = 0 }; } };