style(ascii): add comments

This commit is contained in:
utox39
2025-07-15 02:07:07 +02:00
parent 3e14691e14
commit a18fd7ade8

View File

@@ -105,11 +105,13 @@ pub fn printAscii(allocator: std.mem.Allocator, sys_info_list: std.ArrayList([]u
if (i < sys_info_len) { if (i < sys_info_len) {
try stdout.print("{s}\n", .{sys_info_items[i]}); try stdout.print("{s}\n", .{sys_info_items[i]});
} else if (i == sys_info_len + 1) { } else if (i == sys_info_len + 1) {
// Print the first row of colors
for (0..8) |j| { for (0..8) |j| {
try stdout.print("\x1b[48;5;{d}m \x1b[0m", .{j}); try stdout.print("\x1b[48;5;{d}m \x1b[0m", .{j});
} }
try stdout.print("\n", .{}); try stdout.print("\n", .{});
} else if (i == sys_info_len + 2) { } else if (i == sys_info_len + 2) {
// Print the second row of colors
for (8..16) |j| { for (8..16) |j| {
try stdout.print("\x1b[48;5;{d}m \x1b[0m", .{j}); try stdout.print("\x1b[48;5;{d}m \x1b[0m", .{j});
} }