aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-12-02 16:45:07 +0100
committerMattias Andrée <maandree@operamail.com>2015-12-02 16:45:07 +0100
commitbf132897a731f03e35cef597b9a9d7067f0dd62f (patch)
treefd72dabd00cd5c5e4906dd761aabe1133365cbb0 /src
parentcenter the text (diff)
downloadread-quickly-bf132897a731f03e35cef597b9a9d7067f0dd62f.tar.gz
read-quickly-bf132897a731f03e35cef597b9a9d7067f0dd62f.tar.bz2
read-quickly-bf132897a731f03e35cef597b9a9d7067f0dd62f.tar.xz
give the user time to prepare herself
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/rq.c2
1 files changed, 1 insertions, 1 deletions
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;
}