fix: minor fix
This commit is contained in:
@@ -95,7 +95,7 @@ pub fn printAsciiAndModules(allocator: std.mem.Allocator, ascii_art_path: ?[]u8,
|
|||||||
const ascii_art_items = ascii_art_content_list.items;
|
const ascii_art_items = ascii_art_content_list.items;
|
||||||
const sys_info_items = sys_info_list.items;
|
const sys_info_items = sys_info_list.items;
|
||||||
|
|
||||||
const terminal_size = try utils.getTerminalSize() catch utils.TermSize{ 50, 50 };
|
const terminal_size = utils.getTerminalSize() catch utils.TermSize{ .height = 50, .width = 50 };
|
||||||
const terminal_width: usize = @intCast(terminal_size.width);
|
const terminal_width: usize = @intCast(terminal_size.width);
|
||||||
|
|
||||||
const spacing: usize = 5;
|
const spacing: usize = 5;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ pub fn getTerminalSize() !TermSize {
|
|||||||
}
|
}
|
||||||
|
|
||||||
test "getTerminalSize" {
|
test "getTerminalSize" {
|
||||||
const terminal_size = try getTerminalSize() catch TermSize{ 50, 50 };
|
const terminal_size = getTerminalSize() catch TermSize{ .height = 50, .width = 50 };
|
||||||
|
|
||||||
std.debug.print("Height: {}, Width {}\n", .{ terminal_size.height, terminal_size.width });
|
std.debug.print("Height: {}, Width {}\n", .{ terminal_size.height, terminal_size.width });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user