Clear screen in silent mode

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2016-10-02 23:10:49 +02:00
parent 3c67a10347
commit 2dc9daf118
+3 -2
View File
@@ -76,8 +76,9 @@ static void stty(int fd, speed_t speed)
tcflush(fd, TCIOFLUSH);
/* Clear screen -- disabled until we decide on config to disable/enable */
//print("\033[r\033[H\033[J");
/* Clear screen in silent mode */
if (silent)
print("\033[r\033[H\033[J");
}