diff options
Diffstat (limited to 'modules/TUI')
| -rw-r--r-- | modules/TUI/module.jai | 5 |
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 { |
