diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-12-02 16:45:07 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-12-02 16:45:07 +0100 |
commit | bf132897a731f03e35cef597b9a9d7067f0dd62f (patch) | |
tree | fd72dabd00cd5c5e4906dd761aabe1133365cbb0 /src/rq.c | |
parent | center the text (diff) | |
download | read-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 '')
-rw-r--r-- | src/rq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |