diff options
| author | dam <dam@gudinoff> | 2024-02-22 00:42:50 +0000 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2024-02-22 00:42:50 +0000 |
| commit | 6a28cf6fb30f96d540b3ecbfd53b9e20ef61869d (patch) | |
| tree | 5e2e74bb06fba95152f30a2844e71da796a0bf3f /ttt.jai | |
| parent | 039a248c8d1058c50054008495c77798a358f3d0 (diff) | |
| download | task-time-tracker-6a28cf6fb30f96d540b3ecbfd53b9e20ef61869d.tar.zst task-time-tracker-6a28cf6fb30f96d540b3ecbfd53b9e20ef61869d.zip | |
Added TODO to solve incoherent function key codes.
Diffstat (limited to 'ttt.jai')
| -rw-r--r-- | ttt.jai | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1358,17 +1358,20 @@ main :: () { case; { TUI.set_cursor_position(3+drop_down, 2); str := TUI.to_string(key); + array_to_print: [..] string; for 0..str.count-1 { - print("'%'", FormatInt.{value = cast(u8)str[it], base=16}); + tmp := tprint("%", FormatInt.{value = cast(u8)str[it], base=16},, temporary_allocator); + array_add(*array_to_print, tmp); } - write_string(":> "); + string_to_print := join(..array_to_print, separator = " "); + print(": % : ", string_to_print); for 0..str.count-1 { if str[it] == #char "\e" { - str[it] = #char "?"; + str[it] = #char "^"; } } write_string(str); - write_string(" <EOL"); + write_string(" : ~DAM"); drop_down += 1; } } |
