From be1ab6116e50caee4f9dff16e99f0b2c2e1e9277 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sat, 15 Sep 2018 14:20:29 -0700 Subject: Redraw on signals --- src/tty_interface.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tty_interface.c b/src/tty_interface.c index 6482c68..435edda 100644 --- a/src/tty_interface.c +++ b/src/tty_interface.c @@ -366,6 +366,11 @@ int tty_interface_run(tty_interface_t *state) { for (;;) { do { + while(!tty_input_ready(state->tty, -1, 1)) { + /* We received a signal (probably WINCH) */ + draw(state); + } + char s[2] = {tty_getchar(state->tty), '\0'}; handle_input(state, s, 0); -- cgit v1.2.3