about summary refs log tree commit diff homepage
path: root/client.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-22 00:49:24 -0400
committerJune McEnroe <june@causal.agency>2018-08-22 00:49:24 -0400
commit4f47d8d8a4dee292165b36a3e500da101408a646 (patch)
treeadb7418e96a0f192df68e4a18d4908a432f0a6ca /client.c
parentImplement ` ~ and x (diff)
downloadtorus-4f47d8d8a4dee292165b36a3e500da101408a646.tar.gz
torus-4f47d8d8a4dee292165b36a3e500da101408a646.zip
Add C-a and C-x
Diffstat (limited to '')
-rw-r--r--client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/client.c b/client.c
index 1493dec..80d1ad9 100644
--- a/client.c
+++ b/client.c
@@ -313,6 +313,13 @@ static void inputNormal(bool keyCode, wchar_t ch) {
 			clientMove(1, 0);
 		}
 
+		break; case CTRL('A'): {
+			clientPut(tile.colors[cellY][cellX], tile.cells[cellY][cellX] + 1);
+		}
+		break; case CTRL('X'): {
+			clientPut(tile.colors[cellY][cellX], tile.cells[cellY][cellX] - 1);
+		}
+
 		break; case CTRL('P'): input.shift -= 0x20;
 		break; case CTRL('N'): input.shift += 0x20;