summaryrefslogtreecommitdiff
path: root/dartbot.c
diff options
context:
space:
mode:
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);