Skip to content

Commit

Permalink
menu: Actually reset text palette after printing branding
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Jul 21, 2024
1 parent f50f46e commit d4058b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ char *config_entry_editor(const char *title, const char *orig_entry) {
print("\n");
terms[0]->get_cursor_pos(terms[0], &x, &y);
set_cursor_pos_helper(terms[0]->cols / 2 - DIV_ROUNDUP(strlen(menu_branding), 2), y);
print("\e[3%sm%s\e[37m", menu_branding_colour, menu_branding);
print("\e[3%sm%s\e[0m", menu_branding_colour, menu_branding);
print("\n\n");
}

Expand Down Expand Up @@ -885,7 +885,7 @@ noreturn void _menu(bool first_run) {
print("\n");
terms[0]->get_cursor_pos(terms[0], &x, &y);
set_cursor_pos_helper(terms[0]->cols / 2 - DIV_ROUNDUP(strlen(menu_branding), 2), y);
print("\e[3%sm%s\e[37m", menu_branding_colour, menu_branding);
print("\e[3%sm%s\e[0m", menu_branding_colour, menu_branding);
print("\n\n\n\n");
}

Expand Down

0 comments on commit d4058b5

Please sign in to comment.