menu: Change menu arrow to use unicode big arrow

This commit is contained in:
mintsuki 2023-08-27 02:29:43 -05:00
parent 88bdc3b074
commit 3f0591ee8c
2 changed files with 4 additions and 2 deletions

View File

@ -548,12 +548,14 @@ static size_t print_tree(size_t offset, size_t window, const char *shift, size_t
}
if (current_entry->sub) {
if (!no_print) print(current_entry->expanded ? "[-]" : "[+]");
cur_len += 3;
} else if (level) {
if (!no_print) print(serial ? "-> " : "─> ");
if (!no_print) print(serial ? "-> " : "─►");
cur_len += 2;
} else {
if (!no_print) print(" ");
cur_len += 3;
}
cur_len += 3;
if (base_index + max_entries == selected_entry) {
*selected_menu_entry = current_entry;
if (!no_print) print("\e[7m");

Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 KiB

After

Width:  |  Height:  |  Size: 501 KiB