Why doesn't this work? This works.
vefatica May 20, 2008 12,347 134 Syracuse, NY, USA Mar 15, 2021 #1 Why doesn't this work? This works.
Charles Dye Super Moderator Staff member May 20, 2008 4,751 110 Albuquerque, NM prospero.unm.edu Mar 15, 2021 #2 Do you have a color set for stderr output?
rconn Administrator Staff member May 14, 2008 12,693 169 Mar 15, 2021 #3 Ask Microsoft; they handle ANSI in Win 10. Apparently they don't want you to use ANSI for STDERR. And your second example is not outputting to STDERR, it's writing to STDOUT and redirecting that to STDERR.
Ask Microsoft; they handle ANSI in Win 10. Apparently they don't want you to use ANSI for STDERR. And your second example is not outputting to STDERR, it's writing to STDOUT and redirecting that to STDERR.
vefatica May 20, 2008 12,347 134 Syracuse, NY, USA Mar 15, 2021 #4 Charles Dye said: Do you have a color set for stderr output? Click to expand... Normally, yes. In my test, no.
Charles Dye said: Do you have a color set for stderr output? Click to expand... Normally, yes. In my test, no.
vefatica May 20, 2008 12,347 134 Syracuse, NY, USA Mar 15, 2021 #5 rconn said: Ask Microsoft; they handle ANSI in Win 10. Apparently they don't want you to use ANSI for STDERR. Click to expand... I dunno! Both of these work. Code: fwprintf(stderr, L"\x01b[31;1mfoo\x01b[0m\n"); WriteConsoleW(GetStdHandle(STD_ERROR_HANDLE), L"\x01b[31;1mfoo\x01b[0m\n", 15, NULL, NULL);
rconn said: Ask Microsoft; they handle ANSI in Win 10. Apparently they don't want you to use ANSI for STDERR. Click to expand... I dunno! Both of these work. Code: fwprintf(stderr, L"\x01b[31;1mfoo\x01b[0m\n"); WriteConsoleW(GetStdHandle(STD_ERROR_HANDLE), L"\x01b[31;1mfoo\x01b[0m\n", 15, NULL, NULL);