From e8ddaf3289a836c10f45b1b8c019922a99393488 Mon Sep 17 00:00:00 2001 From: dam Date: Fri, 9 Feb 2024 01:18:03 +0000 Subject: Reimplemented procedure to read input. --- ttt.jai | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ttt.jai') 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; { -- cgit v1.2.3