aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/TUI/module.jai4
-rw-r--r--ttt.jai5
2 files changed, 3 insertions, 6 deletions
diff --git a/modules/TUI/module.jai b/modules/TUI/module.jai
index 5b7861e..5f143dd 100644
--- a/modules/TUI/module.jai
+++ b/modules/TUI/module.jai
@@ -421,7 +421,6 @@ read_input :: (count_limit: int = -1, terminators: .. u8) -> string {
}
}
-// TODO Provide an advanced read_input_line function that allows some styling and to set a placeholder text.
read_input_line :: (count_limit: int, is_visible: bool = true) -> string, Key {
/*
Use the get_key to read user input and show it on screen.
@@ -498,6 +497,9 @@ read_input_line :: (count_limit: int, is_visible: bool = true) -> string, Key {
str.count -= 1;
case;
+
+ // TODO FIXME Does not support UTF8 input...
+
if idx >= count_limit continue;
if is_escape_code(key) continue;
diff --git a/ttt.jai b/ttt.jai
index 88f1323..364d161 100644
--- a/ttt.jai
+++ b/ttt.jai
@@ -966,7 +966,6 @@ draw_tui :: (db: *Database, layout: *Layout) {
now_week_day := to_calendar(now_utc, .LOCAL).day_of_week_starting_at_0;
// Reset theme and clear screen.
- //attrset(A_NORMAL); TODO DAM
TUI.clear_terminal();
// Draw outer border.
@@ -1000,7 +999,6 @@ draw_tui :: (db: *Database, layout: *Layout) {
// Headers : title
x += 1;
col = *layout.columns[L_TITLE_IDX];
- //mvaddstr(xx y, xx (x + col.alignment_offset), ifx db == *archive then layout.archive_title.data else col.header.data); TODO DAM
TUI.set_cursor_position(x + col.alignment_offset, y);
write_string(ifx db == *archive then layout.archive_title else col.header);
x += col.width;
@@ -1021,7 +1019,6 @@ draw_tui :: (db: *Database, layout: *Layout) {
TUI.set_style(style_default);
}
col = *layout.columns[L_DAYS_IDX + idx];
- //mvaddstr(xx y, xx (x + col.alignment_offset), col.header.data); TODO DAM
TUI.set_cursor_position(x + col.alignment_offset, y);
write_string(col.header);
x += col.width;
@@ -1031,7 +1028,6 @@ draw_tui :: (db: *Database, layout: *Layout) {
// Headers : total
x += 1;
col = *layout.columns[L_TOTAL_IDX];
- //mvaddstr(xx y, xx (x + col.alignment_offset), col.header.data); TODO DAM
TUI.set_cursor_position(x + col.alignment_offset, y);
write_string(col.header);
@@ -1099,7 +1095,6 @@ draw_tui :: (db: *Database, layout: *Layout) {
print_time(y, x, total_time, layout.columns[L_TOTAL_IDX].width);
// Reset theme.
- //attrset(A_NORMAL); TODO DAM
TUI.clear_style();
}