diff options
| author | dam <dam@gudinoff> | 2023-11-27 00:26:13 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2023-11-27 00:26:13 +0000 |
| commit | 7945094deb5cb6bac24a2ec96a4cc3bc0d64b6c8 (patch) | |
| tree | b9972a65f4c9eef5df185d660e4a058fdba6b00a | |
| parent | 38dd080c06708e24bb985587670855e2edb3a0b9 (diff) | |
| download | task-time-tracker-7945094deb5cb6bac24a2ec96a4cc3bc0d64b6c8.tar.zst task-time-tracker-7945094deb5cb6bac24a2ec96a4cc3bc0d64b6c8.zip | |
Reordered the start/stop sequences.
| -rw-r--r-- | TUI/module.jai | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TUI/module.jai b/TUI/module.jai index 2774240..8f5c69a 100644 --- a/TUI/module.jai +++ b/TUI/module.jai @@ -176,8 +176,8 @@ start :: () { input_string.count = 0; input_override = xx Keys.None; - OS_prepare_terminal(); write_strings(Commands.HideCursor, Commands.SaveCursorPosition, Commands.EnterAlternateBuffer, Commands.SetUTF8); + OS_prepare_terminal(); initialized = true; } @@ -186,8 +186,8 @@ stop :: () { if initialized == false return; initialized = false; - write_strings(Commands.EnterMainBuffer, Commands.RestoreCursorPosition, Commands.ShowCursor); OS_reset_terminal(); + write_strings(Commands.EnterMainBuffer, Commands.RestoreCursorPosition, Commands.ShowCursor); } flush_input :: () { |
