This commit is contained in:
2026-04-12 18:14:59 +08:00
parent fa3e1d8129
commit 138c685de1
12 changed files with 909 additions and 13 deletions

View File

@@ -11,6 +11,7 @@
#define CLKS_TTY_BG 0x00101010U
#define CLKS_TTY_CURSOR_BLINK_INTERVAL_TICKS 5ULL
#define CLKS_TTY_BLINK_TICK_UNSET 0xFFFFFFFFFFFFFFFFULL
#define CLKS_TTY_DESKTOP_INDEX 1U
static char clks_tty_cells[CLKS_TTY_COUNT][CLKS_TTY_MAX_ROWS][CLKS_TTY_MAX_COLS];
static u32 clks_tty_cursor_row[CLKS_TTY_COUNT];
@@ -72,6 +73,11 @@ static void clks_tty_draw_cursor(void) {
return;
}
if (clks_tty_active_index == CLKS_TTY_DESKTOP_INDEX) {
clks_tty_cursor_visible = CLKS_FALSE;
return;
}
row = clks_tty_cursor_row[clks_tty_active_index];
col = clks_tty_cursor_col[clks_tty_active_index];
@@ -311,6 +317,11 @@ void clks_tty_tick(u64 tick) {
return;
}
if (clks_tty_active_index == CLKS_TTY_DESKTOP_INDEX) {
clks_tty_cursor_visible = CLKS_FALSE;
return;
}
if (clks_tty_blink_last_tick == CLKS_TTY_BLINK_TICK_UNSET) {
clks_tty_blink_last_tick = tick;