diff options
| author | dam <devnull@localhost> | 2024-02-16 02:33:20 +0000 |
|---|---|---|
| committer | dam <devnull@localhost> | 2024-02-16 02:33:20 +0000 |
| commit | cbb4b1f06b2395705851430742e23240ece90510 (patch) | |
| tree | b8ca6b4a657db467768147fe1c32ce07c85a1bc3 /ttt.jai | |
| parent | b3c9a89d19a3021f56a8d9249307a0c38ee5cfd6 (diff) | |
| download | task-time-tracker-cbb4b1f06b2395705851430742e23240ece90510.tar.zst task-time-tracker-cbb4b1f06b2395705851430742e23240ece90510.zip | |
Base implementation of TUI/windows.
Diffstat (limited to 'ttt.jai')
| -rw-r--r-- | ttt.jai | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1280,15 +1280,14 @@ main :: () { if 1 { print("TEST : draw box\n", to_standard_error = true); auto_release_temp(); - TUI.start(); + TUI.start(); // TODO Should start() call flush_input internally? + TUI.flush_input(); TUI.clear_terminal(); TUI.draw_box(1, 2, 5, 3); TUI.set_cursor_position(1, 1); print("Can you see the box below? (y/n)"); key := TUI.get_key(); TUI.stop(); - - print("\n\n\rDEBUG DEBUG WIP WIP WIP TODO HACK\n\n\r>%<\n\r", TUI.to_string(key)); // TODO WIP Currently debugging this. assert(key == #char "y", "# Failed to draw box.\n"); print("- success\n", to_standard_error = true); } @@ -1325,7 +1324,8 @@ main :: () { assert(key == #char "y", "# Failed to set terminal title.\n"); print("- success\n", to_standard_error = true); } - + + // TODO Setup this test... check for Meta+FX or Ctrl+FX compatibility between windows and *nix. if 1 { print("TEST : print keys and set terminal title\n", to_standard_error = true); TUI.start(); |
