From 34ffee9f33a15f16cfac1202199dfade1f19edb5 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Wed, 22 Aug 2018 00:33:58 -0400 Subject: Implement ` ~ and x --- client.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- cgit 1.4.1