aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authordam <dam@gudinoff>2024-05-05 04:28:56 +0100
committerdam <dam@gudinoff>2024-05-05 04:28:56 +0100
commit3ae6ce04674daaef4f3bf69adbfe4333402cb423 (patch)
tree6e62e2cc106f00baeb9b632e3e3faeb2e4eb5908 /modules
parent54103773365e06d6da8518d135c396949e683960 (diff)
downloadtask-time-tracker-3ae6ce04674daaef4f3bf69adbfe4333402cb423.tar.zst
task-time-tracker-3ae6ce04674daaef4f3bf69adbfe4333402cb423.zip
Added TODO entry.
Diffstat (limited to 'modules')
-rw-r--r--modules/TUI/module.jai5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/TUI/module.jai b/modules/TUI/module.jai
index dc9643c..27c2fcc 100644
--- a/modules/TUI/module.jai
+++ b/modules/TUI/module.jai
@@ -175,7 +175,7 @@ Style :: struct {
negative: bool;
}
-set_style :: inline (style: Style) {
+set_style :: (style: Style) {
auto_release_temp();
builder := String_Builder.{ allocator = temporary_allocator };
@@ -214,8 +214,9 @@ set_style :: inline (style: Style) {
context.terminal_style = style;
}
-clear_style :: inline () {
+clear_style :: () {
write_string(#run sprint(Commands.SetGraphicsRendition, "0"));
+ // TODO Maybe reset context.terminal_style?
}
using_style :: (style: Style) #expand {