diff options
author | Moses Palmér <mosespalmer@gmail.com> | 2016-05-07 16:00:27 +0200 |
---|---|---|
committer | Moses Palmér <mosespalmer@gmail.com> | 2016-05-07 16:05:29 +0200 |
commit | ba0ddce6c57aa3b94c77d20639954b1644f64a1d (patch) | |
tree | 5cac01f7c677e9e7b1ce899c57e4fef38a4519e9 /fbi.c | |
parent | cadef4f05202df2c360773779a5f5b5d6d993df9 (diff) | |
download | fbida-ba0ddce6c57aa3b94c77d20639954b1644f64a1d.tar.gz |
fbi: simply call sleep in svga_show unless interactive
Diffstat (limited to 'fbi.c')
-rw-r--r-- | fbi.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |