mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
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:
1 parent
60df2f2ea9
commit
cd947a69a8
6 files changed
+24
-13
No files matched your search
+1
-1
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user