about summary refs log tree commit diff homepage
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/client.c b/client.c
index 2a8c8c5..5e70b17 100644
--- a/client.c
+++ b/client.c
@@ -65,6 +65,11 @@ static void clientPut(uint8_t color, char cell) {
     clientMessage(&msg);
 }
 
+static void clientSpawn(void) {
+    struct ClientMessage msg = { .type = CLIENT_SPAWN };
+    clientMessage(&msg);
+}
+
 static uint8_t inputColor = COLOR_WHITE;
 
 static void colorFg(uint8_t fg) {
@@ -180,6 +185,7 @@ static void readInput(void) {
         case ESC: mode = MODE_NORMAL; break;
 
         case 'q': endwin(); exit(EX_OK);
+        case 'Q': clientSpawn(); break;
 
         case 'a': clientMove(1, 0); // fallthrough
         case 'i': insertMode(1, 0); break;
p;follow=1'>Replace build system with cmakeJune McEnroe Thanks to cr1901 for helping to test this on Windows. 2020-03-31Allow choosing freecell game on command lineJune McEnroe 2020-01-27Remove cards submoduleJune McEnroe 2019-12-19Remove READMEJune McEnroe 2019-12-16Update submodule URLJune McEnroe 2019-12-15Use symlink for README.3June McEnroe 2019-08-27Show game number in titleJune McEnroe 2019-08-27Replicate the FreeCell LCG and deal algorithmJune McEnroe 2019-08-26Move as deep a stack as possible to empty columnsJune McEnroe 2019-08-26Simplify card and stack function namesJune McEnroe 2019-08-26Clean up namingJune McEnroe 2019-08-25Rewrite FreeCellJune McEnroe With move sequencing! 2019-08-25Build with cards submoduleJune McEnroe 2019-08-25Add cards submoduleJune McEnroe 2019-08-25Remove files from cards repoJune McEnroe 2019-08-22Add READMEJune McEnroe 2019-08-22Add exampleJune McEnroe 2019-08-22Add FILES sectionJune McEnroe 2019-08-22Remove gamesJune McEnroe 2019-04-04Mark card functions inlineJune McEnroe 2019-04-04Add listClearJune McEnroe 2019-04-03Tweak mouseButtonUp code a bitJune McEnroe It's still kind of confusing. 2019-04-03Check gameAvail on double-clickJune McEnroe 2019-04-02Select and move cards on mouse upJune McEnroe 2019-04-01Add idSkipJune McEnroe In Windows 95 FREECELL.EXE, the resource IDs are changed to 403, 404 and 405. For some reason. 2019-03-31Fix weird typoJune McEnroe What the hell. 2019-03-30Add undo to freecellJune McEnroe 2019-03-29Replace path.h with asset.hJune McEnroe 2019-03-29Add king win faceJune McEnroe 2019-03-29Change king face directionJune McEnroe 2019-03-29Load king bitmaps in freecellJune McEnroe