summary refs log tree commit diff homepage
path: root/client.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-08-28 23:38:40 -0400
committerJune McEnroe <june@causal.agency>2017-08-28 23:38:40 -0400
commitce13621292bdfeafd7c6561c432a1d96deccbd3a (patch)
treef2cc5b128e0954be89a0568e7b5c30b3486d1fac /client.c
parentMove license above includes (diff)
downloadtorus-ce13621292bdfeafd7c6561c432a1d96deccbd3a.tar.gz
torus-ce13621292bdfeafd7c6561c432a1d96deccbd3a.zip
Add respawning
Diffstat (limited to '')
-rw-r--r--client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/client.c b/client.c
index f6fc9a9..f477602 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;
1b553be32284cb9d2d&follow=1'>mailmap: source before lighttpdJason A. Donenfeld 2014-01-17ui-shared: do not allow negative minutesJason A. Donenfeld 2014-01-17auth: document tweakables in lua scriptJason A. Donenfeld 2014-01-17repolist: make owner clickable to searchJason A. Donenfeld 2014-01-17ui-shared: move about tab all the way to the leftJason A. Donenfeld 2014-01-17filter: don't forget to reap the auth filterJason A. Donenfeld 2014-01-17cgit.c: free tmp variableJason A. Donenfeld 2014-01-17Switch to exclusively using global ctxLukas Fleischer 2014-01-16auth: have cgit calculate login addressJason A. Donenfeld 2014-01-16auth: lua string comparisons are time invariantJason A. Donenfeld 2014-01-16authentication: use hidden form instead of refererJason A. Donenfeld 2014-01-16auth: add basic authentication filter frameworkJason A. Donenfeld 2014-01-16t0111: Additions and fixesLukas Fleischer 2014-01-16parsing.c: Remove leading space from committerLukas Fleischer