diff --git a/src/agent/Agent.zig b/src/agent/Agent.zig index 5373977c..50893f38 100644 --- a/src/agent/Agent.zig +++ b/src/agent/Agent.zig @@ -535,8 +535,10 @@ fn helpLessThan(_: void, a: SlashCommand.Help, b: SlashCommand.Help) bool { fn printHelpSection(term: *Terminal, header: []const u8, rows: []SlashCommand.Help) void { if (rows.len == 0) return; std.sort.pdq(SlashCommand.Help, rows, {}, helpLessThan); - term.printInfo(header); - for (rows) |r| term.printInfoFmt(" /{s} — {s}", .{ r.name, r.description }); + term.printInfoFmt("{s}{s}{s}", .{ Terminal.ansi.bold, header, Terminal.ansi.reset }); + for (rows) |r| term.printInfoFmt(" {s}{s}/{s}{s} — {s}", .{ + Terminal.ansi.bold, Terminal.ansi.cyan, r.name, Terminal.ansi.reset, r.description, + }); } fn printSlashHelp(self: *Agent, arena: std.mem.Allocator, target: []const u8) void { diff --git a/src/agent/Terminal.zig b/src/agent/Terminal.zig index 6e312133..e677ad6b 100644 --- a/src/agent/Terminal.zig +++ b/src/agent/Terminal.zig @@ -104,12 +104,12 @@ pub fn init(allocator: std.mem.Allocator, history_path: ?[:0]const u8, verbosity _ = c.ic_set_hint_delay(0); _ = c.ic_enable_brace_insertion(true); // `ps-*` namespace avoids colliding with isocline's built-in `ic-*` styles. - c.ic_style_def(style_slash, "ansi-magenta bold"); + c.ic_style_def(style_slash, "ansi-teal bold"); c.ic_style_def(style_string, "ansi-green"); c.ic_style_def(style_var, "ansi-yellow bold"); c.ic_style_def(style_url, "ansi-blue underline"); - c.ic_style_def(style_key, "ansi-cyan"); - c.ic_style_def(style_num, "ansi-yellow"); + c.ic_style_def(style_key, "ansi-blue"); + c.ic_style_def(style_num, "ansi-magenta"); c.ic_style_def(style_err, "ansi-red"); c.ic_set_default_highlighter(&highlighterCallback, null); _ = c.ic_enable_highlight(true); @@ -760,5 +760,5 @@ pub fn printInfo(self: *Terminal, msg: []const u8) void { pub fn printInfoFmt(self: *Terminal, comptime fmt: []const u8, args: anytype) void { if (!self.isRepl() and !atLeast(self.verbosity, .medium)) return; - std.debug.print("{s}" ++ fmt ++ "{s}\n", .{ansi.dim} ++ args ++ .{ansi.reset}); + std.debug.print(fmt ++ "\n", args); }