about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-22 00:33:58 -0400
committerJune McEnroe <june@causal.agency>2018-08-22 00:33:58 -0400
commita37c41807b0bfa84420b2eb98ea3e1dedda05f8b (patch)
treec75310fd7f76b62c8fd3b076f9b89632284380d9
parentFix black-on-black once again (diff)
downloadtorus-a37c41807b0bfa84420b2eb98ea3e1dedda05f8b.tar.gz
torus-a37c41807b0bfa84420b2eb98ea3e1dedda05f8b.zip
Implement ` ~ and 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 3dba3cc..1972be4 100644
--- a/client.c
+++ b/client.c
@@ -296,6 +296,7 @@ static void inputNormal(bool keyCode, wchar_t ch) {
 
 		break; case '8': case '*': input.color ^= COLOR_BRIGHT;
 		break; case '9': case '(': inputInvert();
+		break; case '`': input.color = tile.colors[cellY][cellX];
 
 		break; case 'H': inputSwap(-1,  0);
 		break; case 'L': inputSwap( 1,  0);
@@ -306,6 +307,12 @@ static void inputNormal(bool keyCode, wchar_t ch) {
 		break; case 'B': inputSwap(-1,  1);
 		break; case 'N': inputSwap( 1,  1);
 
+		break; case 'x': clientPut(tile.colors[cellY][cellX], ' ');
+		break; case '~': {
+			clientPut(input.color, tile.cells[cellY][cellX]);
+			clientMove(1, 0);
+		}
+
 		break; case CTRL('P'): input.shift -= 0x20;
 		break; case CTRL('N'): input.shift += 0x20;