aboutsummaryrefslogtreecommitdiff
path: root/ttt.jai
diff options
context:
space:
mode:
authordam <dam@gudinoff>2024-01-03 01:47:04 +0000
committerdam <dam@gudinoff>2024-01-03 01:47:04 +0000
commit37f3a0f812f0b408c323c7c240197ec3c3a1e2f7 (patch)
treebad7a2e86330478b651169031674c55984e5eaaf /ttt.jai
parent698836ed1c6a9175903edd41f4cafdf7cb4b946d (diff)
downloadtask-time-tracker-37f3a0f812f0b408c323c7c240197ec3c3a1e2f7.tar.zst
task-time-tracker-37f3a0f812f0b408c323c7c240197ec3c3a1e2f7.zip
WIP - implementing user line input.
Diffstat (limited to 'ttt.jai')
-rw-r--r--ttt.jai12
1 files changed, 6 insertions, 6 deletions
diff --git a/ttt.jai b/ttt.jai
index 4e63204..654cde4 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -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; {