diff options
Diffstat (limited to 'src/ui.c')
| -rw-r--r-- | src/ui.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -265,12 +265,19 @@ void ui_display_wnd_current_state(const player_list_t *pl, const uint8_t num_pla /** * Displays the message window. * @param[in] message The message to display + * @param[in] highlight If true, the message will be highlighted */ -void ui_display_wnd_messages(const char *message) +void ui_display_wnd_messages(const char *message, const bool highlight) { wclear(w_messages); + + if (highlight) + wattron(w_messages, COLOR_PAIR(CP_YELLOW_ON_BLACK)); mvwprintw(w_messages, 0, 0, "%s", message); + + if (highlight) + wattroff(w_messages, COLOR_PAIR(CP_YELLOW_ON_BLACK)); wrefresh(w_messages); } |
