Display error messages differently in info line (#661)

* Add list of error messages to InfoLine.zig

* Change info and error cases according to review

* Add changes from review for width calculation
This commit is contained in:
Moabeat
2024-07-28 13:02:42 +02:00
committed by GitHub
parent 93554d9ba3
commit 19d4b195f3
6 changed files with 101 additions and 34 deletions

View File

@@ -99,7 +99,7 @@ const E = [_]u21{
};
// zig fmt: on
pub fn clockCell(animate: bool, char: u8, fg: u8, bg: u8) [SIZE]termbox.tb_cell {
pub fn clockCell(animate: bool, char: u8, fg: u16, bg: u16) [SIZE]termbox.tb_cell {
var cells: [SIZE]termbox.tb_cell = undefined;
var tv: std.c.timeval = undefined;