about 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
Diffstat (limited to '')
-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;
 
d=8a10aa570d084f3f417b24f37bf547ac92de611d&follow=1'>Remove Lua supportJune McEnroe Lua support is unused and the dlsym fwrite/write hacks horrify me. Clean it up. 2021-01-20Fix tests for diff spansJune McEnroe 2021-01-20Avoid matching ':' in make tagsJune McEnroe Otherwise a :: rule includes one of the ':'s in the tag name. 2021-01-19Prefer tag matches not preceded by [[:alnum:]]June McEnroe Otherwise the "id" in "void" matches for "void id". 2021-01-19Escape \ and / in mtags search patternsJune McEnroe 2021-01-20Use mtags in source-filterJune McEnroe 2021-01-19Add mtags to generate tags for make and mdocJune McEnroe 2021-01-19Map tags to IDs using only [[:alnum:]-._]June McEnroe 2021-01-19Don't use a pager if reading standard inputJune McEnroe 2021-01-19Support BSD make syntax and match *.amJune McEnroe These don't really go together, but... 2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe Otherwise it ends up going into Shell state. 2021-01-18Allow matching lexers using first input lineJune McEnroe