mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
pw-mon: check stdout, not stderr for tty
Commit afc88a12e5 changed pw-mon to use printf so we now need to check
stdout to know whether we need to print with colors.
This commit is contained in:
parent
001c6e1cc1
commit
26ecde20b9
1 changed files with 1 additions and 1 deletions
|
|
@ -757,7 +757,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
setlinebuf(stdout);
|
||||
|
||||
if (isatty(STDERR_FILENO) && getenv("NO_COLOR") == NULL)
|
||||
if (isatty(STDOUT_FILENO) && getenv("NO_COLOR") == NULL)
|
||||
colors = true;
|
||||
|
||||
while ((c = getopt_long(argc, argv, "hVr:NC", long_options, NULL)) != -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue