firstboot: welcome user with emoji in firstboot wizard 🧙

This commit is contained in:
Lennart Poettering
2025-03-15 05:12:12 +09:00
committed by Yu Watanabe
parent 3a15daf440
commit d810815ed4
5 changed files with 19 additions and 4 deletions
+8 -2
View File
@@ -124,11 +124,17 @@ static void print_welcome(int rfd) {
(void) terminal_reset_defensive_locked(STDOUT_FILENO, /* flags= */ 0);
if (colors_enabled())
printf("\nWelcome to your new installation of \x1B[%sm%s\x1B[0m!\n", ac, pn);
printf("\n"
ANSI_HIGHLIGHT "Welcome to your new installation of " ANSI_NORMAL "\x1B[%sm%s" ANSI_HIGHLIGHT "!" ANSI_NORMAL "\n", ac, pn);
else
printf("\nWelcome to your new installation of %s!\n", pn);
printf("\nPlease configure your system!\n");
putchar('\n');
if (emoji_enabled()) {
fputs(special_glyph(SPECIAL_GLYPH_SPARKLES), stdout);
putchar(' ');
}
printf("Please configure your new system!\n");
any_key_to_proceed();