diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-09 04:46:14 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-09 04:46:14 -0700 |
commit | 76234d2e0486c6031554f005796513c82bb346a6 (patch) | |
tree | a2d3564953cff908de75706a3dcb526e43066790 | |
parent | 5726615d498d9a7cef16151f0923b3115c847f3c (diff) | |
download | dartboat-76234d2e0486c6031554f005796513c82bb346a6.tar.gz dartboat-76234d2e0486c6031554f005796513c82bb346a6.tar.xz |
change prompt to black on white
-rw-r--r-- | dartbot.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); |