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
commit34ffee9f33a15f16cfac1202199dfade1f19edb5 (patch)
tree6170d4a5312b3410052ab184abf7202d68552877
parentFix black-on-black once again (diff)
downloadtorus-34ffee9f33a15f16cfac1202199dfade1f19edb5.tar.gz
torus-34ffee9f33a15f16cfac1202199dfade1f19edb5.zip
Implement ` ~ and x
-rw-r--r--client.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/client.c b/client.c
index c5d9d3b..1493dec 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;
 
9-12-21 15:14:22 -0500'>2019-12-21Clarify purpose in READMEJune McEnroe 2019-12-21Add READMEJune McEnroe 2019-12-21Add copyright header to git-fetch-emailJune McEnroe 2019-12-21Add git-fetch-email to SEE ALSO of imboxJune McEnroe 2019-12-21Add git-fetch-email wrapperJune McEnroe 2019-12-21Determine host by SRV lookupJune McEnroe 2019-12-21Clean up remaining codeJune McEnroe 2019-12-21Clean up mboxrd codeJune McEnroe 2019-12-21Convert CRLF to LFJune McEnroe 2019-12-21Implement -CFSTJune McEnroe 2019-12-21Rewrite aspirational manualJune McEnroe 2019-12-21Null-terminate read literalsJune McEnroe