From a18fd7ade8f71875180ee76bc97e96db29c1b5e8 Mon Sep 17 00:00:00 2001 From: utox39 Date: Tue, 15 Jul 2025 02:07:07 +0200 Subject: [PATCH] style(ascii): add comments --- src/ascii.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ascii.zig b/src/ascii.zig index 9ef63f7..bed067d 100644 --- a/src/ascii.zig +++ b/src/ascii.zig @@ -105,11 +105,13 @@ pub fn printAscii(allocator: std.mem.Allocator, sys_info_list: std.ArrayList([]u if (i < sys_info_len) { try stdout.print("{s}\n", .{sys_info_items[i]}); } else if (i == sys_info_len + 1) { + // Print the first row of colors for (0..8) |j| { try stdout.print("\x1b[48;5;{d}m \x1b[0m", .{j}); } try stdout.print("\n", .{}); } else if (i == sys_info_len + 2) { + // Print the second row of colors for (8..16) |j| { try stdout.print("\x1b[48;5;{d}m \x1b[0m", .{j}); }