From 76234d2e0486c6031554f005796513c82bb346a6 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 9 Apr 2022 04:46:14 -0700 Subject: change prompt to black on white --- dartbot.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dartbot.c') diff --git a/dartbot.c b/dartbot.c index 9dc387d..defd528 100644 --- a/dartbot.c +++ b/dartbot.c @@ -44,7 +44,8 @@ M(20, 202, 0) \ M(0, 196, 0) \ M(DARTS, 235, 0) \ - M(VISIT, 244, 0) + M(VISIT, 244, 0) \ + M(PROMPT, 0, 7) #define GEN_COLOUR_ENUM(X, FG, BG) C_ ## X, #define GEN_COLOUR_INIT_PAIR(X, FG, BG) init_pair(C_ ## X, FG, BG); @@ -388,8 +389,9 @@ void user_visit(WINDOW *w, struct leg *l) { struct visit *v = l->visits + l->n_visits++; - char prompt[] = "Enter points: "; - WINDOW *iw = subwin(w, 1, COLS-4, LINES-2, 2); + char prompt[] = " Enter points: "; + WINDOW *iw = subwin(w, 1, COLS-2, LINES-2, 1); + wbkgd(iw, COLOR_PAIR(C_PROMPT)); waddstr(iw, prompt); touchwin(w); wrefresh(iw); -- cgit v1.2.3-70-g09d2