diff options
| author | dam <dam@gudinoff> | 2024-01-03 01:47:04 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2024-01-03 01:47:04 +0000 |
| commit | 37f3a0f812f0b408c323c7c240197ec3c3a1e2f7 (patch) | |
| tree | bad7a2e86330478b651169031674c55984e5eaaf /ttt.jai | |
| parent | 698836ed1c6a9175903edd41f4cafdf7cb4b946d (diff) | |
| download | task-time-tracker-37f3a0f812f0b408c323c7c240197ec3c3a1e2f7.tar.zst task-time-tracker-37f3a0f812f0b408c323c7c240197ec3c3a1e2f7.zip | |
WIP - implementing user line input.
Diffstat (limited to 'ttt.jai')
| -rw-r--r-- | ttt.jai | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1239,7 +1239,7 @@ main :: () { // TODO Test input - if 1 { + if 0 { print("TEST : set and get cursor position --\n", to_standard_error = true); TUI.start(); ROW :: 3; @@ -1251,7 +1251,7 @@ main :: () { print("> success\n", to_standard_error = true); } - if 1 { + if 0 { print("TEST : test key input --\n", to_standard_error = true); auto_release_temp(); TUI.start(); @@ -1271,7 +1271,7 @@ main :: () { print("> success\n", to_standard_error = true); } - if 1 { + if 0 { print("TEST : draw box --\n", to_standard_error = true); auto_release_temp(); TUI.start(); @@ -1285,7 +1285,7 @@ main :: () { print("> success\n", to_standard_error = true); } - if 1 { + if 0 { print("TEST : get terminal size --\n", to_standard_error = true); auto_release_temp(); TUI.start(); @@ -1303,7 +1303,7 @@ main :: () { } #if 1 { - print("test 5\n", to_standard_error = true); + print("TEST : print keys and set terminal title --\n", to_standard_error = true); TUI.start(); TUI.set_terminal_title("bazinga"); xcolumns, xrows: int; @@ -1372,7 +1372,7 @@ main :: () { TUI.set_cursor_position(1, 1); print("Enter some text (use Enter to finish, Esc to cancel, or resize to abort):"); TUI.set_cursor_position(2, 1); - str, key := TUI.user_line_input(); + str, key := TUI.user_line_input(15); TUI.set_cursor_position(3, 1); if key == { case TUI.Keys.Escape; { |
