Replies: 4 comments 7 replies
-
Strangely, this does work within powershell:
as does: |
Beta Was this translation helpful? Give feedback.
-
Actually, this is probably GCC's fault somehow /* If it is not a console, write everything as-is. */
write_all (h, read, strlen (read)); This would also explain why the redirection helps. |
Beta Was this translation helpful? Give feedback.
-
I did some more digging in GCC and there are multiple causes that result in this. It's not an issue with windows terminal, but I have some questions still. Can someone convert this to a discussion? |
Beta Was this translation helpful? Give feedback.
-
@DHowett So, there are multiple causes of it. The reason that I changed that line to this: - if (GetConsoleMode (h, &mode))
+ if (GetConsoleMode (h, &mode) && !(mode & ENABLE_VIRTUAL_TERMINAL_PROCESSING)) But I suspect it's not correct. What would be the proper way to check if gcc is outputting to a console that does support the \e codes? Another problem is that "auto_enable_urls" is hardcoded to return false on |
Beta Was this translation helpful? Give feedback.
-
Windows Terminal version
Version: 1.19.11213.0
Windows build number
WIndows 10 Version 22H2 (OS Build 19045.4291)
Other Software
GCC version 10 or later
Steps to reproduce
Install GCC 10 or later
I use w64devkit:
https://github.com/skeeto/w64devkit/releases/latest
Try compiling the following code:
with:
gcc -Wall test.c -fdiagostics-urls=always
Observe that the hyperlink on [-Wformat=] does not work correctly
Expected Behavior
The expected behavior is what WSL does, the hyperlink is present, and ctrl+click opens it.
Actual Behavior
See above screenshot.
Beta Was this translation helpful? Give feedback.
All reactions