From 3ae6ce04674daaef4f3bf69adbfe4333402cb423 Mon Sep 17 00:00:00 2001 From: dam Date: Sun, 5 May 2024 04:28:56 +0100 Subject: Added TODO entry. --- modules/TUI/module.jai | 5 +++-- 1 file 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 { -- cgit v1.2.3