From a1f9748131977cc15423d89a536f0a70cd9d49db Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sun, 29 Jan 2023 16:33:57 +0000 Subject: [PATCH] Do not use hyperlink ANSI escapes on Windows --- src/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util.c b/src/util.c index a974ca11..4ccbae77 100644 --- a/src/util.c +++ b/src/util.c @@ -981,8 +981,12 @@ void term_init(void) } #endif +#ifndef __MINGW32__ // Only print link escape codes if this is really a terminal want_links = want_color && is_tty; +#else + want_links = false; // Winpty doesn't recognise these +#endif // Diagnostics are printed to stderr and explicitly flushed setvbuf(stderr, NULL, _IOLBF, BUFSIZ); -- 2.39.2