summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-04-01 16:54:46 +0200
committerYorhel <git@yorhel.nl>2020-04-01 16:54:57 +0200
commit888bd663c681e579950fb9a0362761960708e9b6 (patch)
treee8e3d5d6454015cee7c318955413c052d393e3c6
parent8d582973286e41684b4b5520c85586424091ee16 (diff)
Also quit on EIO from getch()
Fixes #141
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 4f12e63..e72c507 100644
--- a/src/main.c
+++ b/src/main.c
@@ -106,7 +106,7 @@ int input_handle(int wait) {
}
screen_draw();
}
- if(errno == EPIPE || errno == EBADF)
+ if(errno == EPIPE || errno == EBADF || errno == EIO)
return 1;
return 0;
}