From 384f833e839cf8f5e71b656cf7b390fc80d89e9d Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 1 Jun 2022 15:47:02 +0800 Subject: Help text, wasd/hjkl navigation --- ui.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ui.c') 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"); +} + -- cgit v1.2.3