summaryrefslogtreecommitdiff
path: root/dartbot.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-09 04:46:14 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-04-09 04:46:14 -0700
commit76234d2e0486c6031554f005796513c82bb346a6 (patch)
treea2d3564953cff908de75706a3dcb526e43066790 /dartbot.c
parent5726615d498d9a7cef16151f0923b3115c847f3c (diff)
downloaddartboat-76234d2e0486c6031554f005796513c82bb346a6.tar.gz
dartboat-76234d2e0486c6031554f005796513c82bb346a6.tar.xz
change prompt to black on white
Diffstat (limited to 'dartbot.c')
-rw-r--r--dartbot.c8
1 files changed, 5 insertions, 3 deletions
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);