commit f428ba14194dbe1f143bcc31dc7b3ef9f072db08
parent d3f5940f90588de93d2a9dba3743e374a0a951bd
Author: Jan Klemkow <j.klemkow@wemelug.de>
Date: Fri, 7 Feb 2020 21:34:37 +0100
replace printf+fflush by dprintf
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scroll.c b/scroll.c
@@ -167,8 +167,7 @@ scrollup(void)
int rows;
/* move the text in terminal n lines down */
- printf("\033[%dS", ws.ws_row);
- fflush(stdout);
+ dprintf(STDOUT_FILENO, "\033[%dS", ws.ws_row);
/* set cursor position */
write(STDOUT_FILENO, "\033[0;0H", 6);