diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-06-01 15:47:02 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-06-01 15:47:02 +0800 |
commit | 384f833e839cf8f5e71b656cf7b390fc80d89e9d (patch) | |
tree | 35a3bba6131018624cd2bd3d8c2c4d3eee106b11 /ui.c | |
parent | d191870068f89293353a67b164b4dbb3b3a71661 (diff) |
Help text, wasd/hjkl navigation
Diffstat (limited to 'ui.c')
-rw-r--r-- | ui.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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"); +} + |