diff options
| author | dam <dam@gudinoff> | 2024-05-05 15:55:30 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2024-05-05 15:55:30 +0100 |
| commit | b32a697e1898a37497cfc504a2746dcf1f0710da (patch) | |
| tree | 323200ad27b36cb80a7697f5bedf31464e0d171b /modules | |
| parent | 3ae6ce04674daaef4f3bf69adbfe4333402cb423 (diff) | |
| download | task-time-tracker-b32a697e1898a37497cfc504a2746dcf1f0710da.tar.zst task-time-tracker-b32a697e1898a37497cfc504a2746dcf1f0710da.zip | |
Finished first version of TUI.
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/TUI/module.jai | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/TUI/module.jai b/modules/TUI/module.jai index 27c2fcc..e25672f 100644 --- a/modules/TUI/module.jai +++ b/modules/TUI/module.jai @@ -22,7 +22,7 @@ #load "palette_8b.jai"; case 24; #load "palette_24b.jai"; - _; + case; assert(false, "Invalid COLOR_MODE_BITS. Valid values are 4, 8, or 24 (default)."); } @@ -165,7 +165,6 @@ Style :: struct { background = Palette.BLACK; foreground = Palette.WHITE; - // TODO Make this work... and now that is implemented... test it. use_default_background_color := false; use_default_foreground_color := false; @@ -216,7 +215,7 @@ set_style :: (style: Style) { clear_style :: () { write_string(#run sprint(Commands.SetGraphicsRendition, "0")); - // TODO Maybe reset context.terminal_style? + context.terminal_style = .{ }; } using_style :: (style: Style) #expand { |
