summary refs log tree commit diff homepage
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
commit2d3f28fb6a01c30f5179c4cf86e9cef156e8121a (patch)
tree55742033fc917125ec5c27eb2d74f2c527e0fea2
parentImplement ` ~ and x (diff)
downloadtorus-2d3f28fb6a01c30f5179c4cf86e9cef156e8121a.tar.gz
torus-2d3f28fb6a01c30f5179c4cf86e9cef156e8121a.zip
Add C-a and C-x
-rw-r--r--client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/client.c b/client.c
index 1972be4..6b60cb8 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;