aboutsummaryrefslogtreecommitdiffstats
path: root/fbi.c
diff options
context:
space:
mode:
authorMoses Palmér <mosespalmer@gmail.com>2016-05-07 16:00:27 +0200
committerMoses Palmér <mosespalmer@gmail.com>2016-05-07 16:05:29 +0200
commitba0ddce6c57aa3b94c77d20639954b1644f64a1d (patch)
tree5cac01f7c677e9e7b1ce899c57e4fef38a4519e9 /fbi.c
parentcadef4f05202df2c360773779a5f5b5d6d993df9 (diff)
downloadfbida-ba0ddce6c57aa3b94c77d20639954b1644f64a1d.tar.gz
fbi: simply call sleep in svga_show unless interactive
Diffstat (limited to 'fbi.c')
-rw-r--r--fbi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fbi.c b/fbi.c
index cbccc0f..d3eb97c 100644
--- a/fbi.c
+++ b/fbi.c
@@ -789,6 +789,12 @@ svga_show(struct flist *f, struct flist *prev,
if (check_console_switch()) {
continue;
}
+
+ if (!interactive) {
+ sleep(timeout);
+ return -1;
+ }
+
FD_ZERO(&set);
FD_SET(0, &set);
fdmax = 1;