From ba0ddce6c57aa3b94c77d20639954b1644f64a1d Mon Sep 17 00:00:00 2001 From: Moses Palmér Date: Sat, 7 May 2016 16:00:27 +0200 Subject: fbi: simply call sleep in svga_show unless interactive --- fbi.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'fbi.c') 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; -- cgit