Hide cursor at boot and shutdown

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-12-17 08:19:39 +01:00
parent a3d9b6e9b1
commit 702a606d26
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -89,6 +89,9 @@ void console_init(void)
/* Reset attributes, background and foreground color */
dprint(STDOUT_FILENO, "\033[49m\033[39m\e[2J", 14);
/* Hide cursor while we boot up. */
dprint(STDOUT_FILENO, "\033[?25l", 6);
log_init();
}
+3
View File
@@ -361,6 +361,9 @@ restart:
/* Restore terse mode and run hooks before shutdown */
if (runlevel == 0 || runlevel == 6) {
/* Hide cursor, we're going down ... */
dprint(STDOUT_FILENO, "\033[?25l", 14);
api_exit();
log_exit();
plugin_run_hooks(HOOK_SHUTDOWN);