ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
terminal.c File Reference

Go to the source code of this file.

Functions

int terminal_choose_log_fd (int level)

Function Documentation

◆ terminal_choose_log_fd()

int terminal_choose_log_fd ( int level)

Definition at line 7 of file lib/log/terminal.c.

7 {
9 return STDERR_FILENO;
10 return level >= LOG_WARN ? STDERR_FILENO : STDOUT_FILENO;
11}
bool log_get_force_stderr(void)
Get current force_stderr setting.
bool terminal_is_interactive(void)
#define LOG_WARN
Definition types.h:45

References log_get_force_stderr(), LOG_WARN, and terminal_is_interactive().

Referenced by log_console_impl(), log_msg(), and log_plain_msg().