aboutsummaryrefslogtreecommitdiff
path: root/ttt.jai
diff options
context:
space:
mode:
authordam <devnull@localhost>2024-02-09 01:18:03 +0000
committerdam <devnull@localhost>2024-02-09 01:18:03 +0000
commite8ddaf3289a836c10f45b1b8c019922a99393488 (patch)
treee96b77b0764e6ef1fdcf877cc1f7703d7f9e804c /ttt.jai
parent0e9f04df9c1804b73baecdf4c3ad14fff977e2f1 (diff)
downloadtask-time-tracker-e8ddaf3289a836c10f45b1b8c019922a99393488.tar.zst
task-time-tracker-e8ddaf3289a836c10f45b1b8c019922a99393488.zip
Reimplemented procedure to read input.
Diffstat (limited to 'ttt.jai')
-rw-r--r--ttt.jai7
1 files changed, 6 insertions, 1 deletions
diff --git a/ttt.jai b/ttt.jai
index 3e95802..d4a5320 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -1239,6 +1239,11 @@ main :: () {
// TODO Test input
+ {
+ TUI.test();
+ exit(0);
+ }
+
if 1 {
print("TEST : set and get cursor position --\n", to_standard_error = true);
TUI.start();
@@ -1372,7 +1377,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(15);
+ str, key := TUI.read_input_line(15);
TUI.set_cursor_position(3, 1);
if key == {
case TUI.Keys.Escape; {