From 30415ec180d366627426f9e5fe3c820b9518df97 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 49a07b84..eb6b0938 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