| ... | ... |
@@ -46,7 +46,11 @@ static void draw_match(tty_interface_t *state, const char *choice, int selected) |
| 46 | 46 |
} |
| 47 | 47 |
|
| 48 | 48 |
if (selected) |
| 49 |
+#ifdef TTY_SELECTION_UNDERLINE |
|
| 50 |
+ tty_setunderline(tty); |
|
| 51 |
+#else |
|
| 49 | 52 |
tty_setinvert(tty); |
| 53 |
+#endif |
|
| 50 | 54 |
|
| 51 | 55 |
for (size_t i = 0, p = 0; choice[i] != '\0'; i++) {
|
| 52 | 56 |
if (i + 1 < maxwidth) {
|