summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-06-01 15:47:02 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-06-01 15:47:02 +0800
commit384f833e839cf8f5e71b656cf7b390fc80d89e9d (patch)
tree35a3bba6131018624cd2bd3d8c2c4d3eee106b11 /ui.c
parentd191870068f89293353a67b164b4dbb3b3a71661 (diff)
Help text, wasd/hjkl navigation
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 1b1cb74..1c1eea3 100644
--- a/ui.c
+++ b/ui.c
@@ -67,3 +67,9 @@ void printpieces(struct piece** hand, int y, int x, int nhand, int highlight) {
refresh();
}
+void printhelp(int y, int x) {
+ mvprintw(y, x, "Press arrow keys / wasd / hjkl to navigate");
+ mvprintw(y + 1, x, "[ or ] to switch pieces");
+ mvprintw(y + 2, x, "Press q to quit");
+}
+