summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2019-02-13 23:52:46 +0100
committerTom Smeding <tom.smeding@gmail.com>2019-02-13 23:52:46 +0100
commit99f3ad9bc30815213af5c666150daa6080c509db (patch)
tree9f989bf92a28ec503b15dfa0dd5910cf1120a40b
parent73e1fc55276661d2cb290876135255e3b534a204 (diff)
Subtly mark chosen in UI-printed board
-rw-r--r--ui.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui.cpp b/ui.cpp
index 82b9158..f1bd84a 100644
--- a/ui.cpp
+++ b/ui.cpp
@@ -78,8 +78,12 @@ int UI::getMove(const Board &bd) {
case KEY_LF:
case KEY_CR:
- if (cells[cury][curx] == -1) done = true;
- else bel();
+ if (cells[cury][curx] == -1) {
+ cout << "\x1B[36m#\x1B[0m\x1B[D";
+ done = true;
+ } else {
+ bel();
+ }
break;
case 'q':