From bf132897a731f03e35cef597b9a9d7067f0dd62f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Dec 2015 16:45:07 +0100 Subject: give the user time to prepare herself MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/rq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rq.c') diff --git a/src/rq.c b/src/rq.c index 7e9b882..2985d7a 100644 --- a/src/rq.c +++ b/src/rq.c @@ -209,6 +209,7 @@ static int display_file(int fd, int ttyfd, long rate) /* Present file. */ for (s = buffer; *s; s = end) { + sleep(1); get_terminal_size(); while (isspace(*s)) s++; @@ -219,7 +220,6 @@ static int display_file(int fd, int ttyfd, long rate) t (fprintf(stdout, "\033[H\033[2J\033[%zu;%zuH%s", (height + 1) / 2, (width - display_len(s)) / 2 + 1, s) < 0); t (fflush(stdout)); - sleep(1); *end = c; } -- cgit v1.2.3-70-g09d2