mirror of
https://github.com/Leonmmcoset/cleonos.git
synced 2026-04-21 18:44:01 +00:00
Stage 25
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user