diff options
author | John Hawthorn <john@hawthorn.email> | 2018-09-15 14:20:29 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2018-09-23 11:23:53 -0700 |
commit | be1ab6116e50caee4f9dff16e99f0b2c2e1e9277 (patch) | |
tree | eb5222c2e362ee4d7b634c6c45f96b8a3fe55ac9 /src | |
parent | b039ea1d9d5361bb3bbbdb10dd2f455028ff7fcb (diff) |
Redraw on signals
Diffstat (limited to 'src')
-rw-r--r-- | src/tty_interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |