diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-04-20 22:52:35 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-04-20 22:52:35 -0600 |
commit | 891fb523a23a33a8e3832319877159753bfd057a (patch) | |
tree | 6a3db35db998b93886685f15203b02e6c098e3fe /src/terminal.h | |
parent | git: add gitattributes so tarball doesn't have gitignore files (diff) | |
download | wireguard-tools-891fb523a23a33a8e3832319877159753bfd057a.tar.xz wireguard-tools-891fb523a23a33a8e3832319877159753bfd057a.zip |
terminal: specialize color_mode to stdout only
By specializing this to stdout, we can cache the isatty result.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | src/terminal.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/terminal.h b/src/terminal.h index e8cb570..58697fa 100644 --- a/src/terminal.h +++ b/src/terminal.h @@ -47,6 +47,5 @@ #define TERMINAL_CLEAR_ALL "\x1b[2J" void terminal_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2))); -void terminal_fprintf(FILE *file, const char *fmt, ...) __attribute__((format(printf, 2, 3))); #endif |