basic/glyph-util: rename "special glyph" to just "glyph"
Admittedly, some of our glyphs _are_ special, e.g. "O=" for SPECIAL_GLYPH_TOUCH ;) But we don't need this in the name. The very long names make some invocations very wordy, e.g. special_glyph(SPECIAL_GLYPH_SLIGHTLY_UNHAPPY_SMILEY). Also, I want to add GLYPH_SPACE, which is not special at all.
This commit is contained in:
@@ -131,7 +131,7 @@ static void print_welcome(int rfd) {
|
||||
|
||||
putchar('\n');
|
||||
if (emoji_enabled()) {
|
||||
fputs(special_glyph(SPECIAL_GLYPH_SPARKLES), stdout);
|
||||
fputs(glyph(GLYPH_SPARKLES), stdout);
|
||||
putchar(' ');
|
||||
}
|
||||
printf("Please configure your new system!\n");
|
||||
@@ -188,7 +188,7 @@ static int prompt_loop(
|
||||
l,
|
||||
strv_isempty(l) ? "%s %s (empty to skip): "
|
||||
: "%s %s (empty to skip, \"list\" to list options): ",
|
||||
special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), text);
|
||||
glyph(GLYPH_TRIANGULAR_BULLET), text);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to query user: %m");
|
||||
|
||||
@@ -785,8 +785,8 @@ static int prompt_root_password(int rfd) {
|
||||
|
||||
print_welcome(rfd);
|
||||
|
||||
msg1 = strjoina(special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), " Please enter the new root password (empty to skip):");
|
||||
msg2 = strjoina(special_glyph(SPECIAL_GLYPH_TRIANGULAR_BULLET), " Please enter the new root password again:");
|
||||
msg1 = strjoina(glyph(GLYPH_TRIANGULAR_BULLET), " Please enter the new root password (empty to skip):");
|
||||
msg2 = strjoina(glyph(GLYPH_TRIANGULAR_BULLET), " Please enter the new root password again:");
|
||||
|
||||
suggest_passwords();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user