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
commit2d3f28fb6a01c30f5179c4cf86e9cef156e8121a (patch)
tree55742033fc917125ec5c27eb2d74f2c527e0fea2 /client.c
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;
 
McEnroe Fall back to using bold if there are only 8 colors. This also allowed bright background colors in 16-color terminals. I must port this system to torus. I'll be able to remove the awful termcap patch hack. 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe Oh boy that's embarrassing. 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe Don't really have a way to implement the M-* keys, and currently missing C-w. 2018-08-04Handle /topicJune McEnroe