log.c: New functions to hide access to quiet and silent flags

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-07-02 12:42:44 +02:00
1 parent 60df2f2ea9
commit cd947a69a8
6 files changed
+24 -13

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ static void stty(int fd, speed_t speed)
tcsetattr(fd, TCSANOW, &term);
/* Clear screen in silent mode */
if (silent)
if (log_is_silent())
print("\033[r\033[H\033[J");
}