aboutsummaryrefslogtreecommitdiff
path: root/ttt.jai
diff options
context:
space:
mode:
Diffstat (limited to 'ttt.jai')
-rw-r--r--ttt.jai7
1 files changed, 2 insertions, 5 deletions
diff --git a/ttt.jai b/ttt.jai
index 6f0f426..7690c68 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -1420,17 +1420,14 @@ main :: () {
}
TUI.stop();
}
-
- // BUG
- // SECOND TIME CALLING TO read_input_line fails...
- if 0 {
+ if 1 {
print("TEST : hidden user input\n", to_standard_error = true);
auto_release_temp();
TUI.start();
TUI.clear_terminal();
TUI.set_cursor_position(1, 1);
- print("Enter some text (use Enter to finish, Esc to cancel, or resize to abort):");
+ print("Enter some secret (use Enter to finish, Esc to cancel, or resize to abort):");
r, c := TUI.get_cursor_position();
TUI.set_cursor_position(r+1, 1);
str, key := TUI.read_input_line(15, false);