aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2019-02-09 23:07:59 +0100
committertomsmeding <tom.smeding@gmail.com>2019-02-09 23:07:59 +0100
commit3961af4864bf01b557de61c51e1ef08f251cc97a (patch)
tree1cc76d3c78e1aa2176133f41763e2be665cf8ae6
parent8fa4a04479885d7a430f01f7d6f6093e287c1eb5 (diff)
Handle ^L to redraw screenHEADmaster
Using installCLhandler() doesn't work because the automatic handler blocks on reading the next key after a ^L, which may not come.
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 4739851..025d485 100644
--- a/main.c
+++ b/main.c
@@ -259,6 +259,7 @@ int main(void){
} else if(key=='A'||key=='a'||key==KEY_LEFT)move(&bd,-1);
else if(key=='D'||key=='d'||key==KEY_RIGHT)move(&bd,1);
else if(key=='W'||key=='w'||key==KEY_UP)rotR(&bd);
+ else if(key==KEY_CTRL+'L')redrawfull();
else bel();
}
}