]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
terminal: specialize color_mode to stdout only
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 21 Apr 2020 04:52:35 +0000 (22:52 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 21 Apr 2020 04:52:35 +0000 (22:52 -0600)
commit891fb523a23a33a8e3832319877159753bfd057a
tree6a3db35db998b93886685f15203b02e6c098e3fe
parent3377409bb334e8d371f254586210e3884b7e7c75
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>
src/terminal.c
src/terminal.h