diff options
| author | dam <dam@gudinoff> | 2024-04-06 02:15:41 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2024-04-06 02:15:41 +0100 |
| commit | c8fb1f06ec6f83fc71c2f68bb2fc337e971e25b9 (patch) | |
| tree | 5096c8e557643075c944c705430d138a3f2aa6ac /modules/TUI/module.jai | |
| parent | ddb3e4f4192009a47fa094aaad5e57da9b8c2711 (diff) | |
| download | task-time-tracker-c8fb1f06ec6f83fc71c2f68bb2fc337e971e25b9.tar.zst task-time-tracker-c8fb1f06ec6f83fc71c2f68bb2fc337e971e25b9.zip | |
Improved user input prompts.
Diffstat (limited to 'modules/TUI/module.jai')
| -rw-r--r-- | modules/TUI/module.jai | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/TUI/module.jai b/modules/TUI/module.jai index 21cd88a..4e67db5 100644 --- a/modules/TUI/module.jai +++ b/modules/TUI/module.jai @@ -448,7 +448,13 @@ read_input_line :: (count_limit: int, is_visible: bool = true) -> string, Key { // > https://unix.stackexchange.com/questions/255707/what-are-the-keyboard-shortcuts-for-the-command-line row, col := get_cursor_position(); - write_strings(Commands.StartBlinking, Commands.BlinkingUnderlineShape); + write_strings(Commands.StartBlinking, Commands.BlinkingBarShape); + + // Clear line for input. + for 1..count_limit { + print_character(#char " "); + } + set_cursor_position(row, col); key := Keys.None; while true { |
