Win32 curl.exe should enable VT processing #318

Open
opened 2026-01-30 21:48:43 +00:00 by claunia · 0 comments
Owner

Originally created by @PhMajerus on GitHub (Jul 4, 2018).

Originally assigned to: @bitcrazed on GitHub.

I believe curl.exe is owned by PowerShell team, but since the issue is conhost-related, and you guys are probably the ones who can best understand what the issue is, and know how to fix it quickly, I'll report this here hoping you can get it done.

curl for Windows 10 (%SystemRoot%\System32\curl.exe) works pretty well, but inherits the conhost mode of the parent process.
Because of this, VT markup served over http for console users renders the escape characters instead of processing them as control sequences.

For behavior parity with the original version, can someone please add a SetConsoleMode ENABLE_VIRTUAL_TERMINAL_PROCESSING to curl.exe ?

curl wsl
curl win32

Originally created by @PhMajerus on GitHub (Jul 4, 2018). Originally assigned to: @bitcrazed on GitHub. I believe curl.exe is owned by PowerShell team, but since the issue is conhost-related, and you guys are probably the ones who can best understand what the issue is, and know how to fix it quickly, I'll report this here hoping you can get it done. curl for Windows 10 (%SystemRoot%\System32\curl.exe) works pretty well, but inherits the conhost mode of the parent process. Because of this, VT markup served over http for console users renders the escape characters instead of processing them as control sequences. For behavior parity with the original version, can someone please add a SetConsoleMode ENABLE_VIRTUAL_TERMINAL_PROCESSING to curl.exe ? ![curl wsl](https://user-images.githubusercontent.com/25664275/42294504-99f2c30a-7fe1-11e8-9fed-d54bc284980b.png) ![curl win32](https://user-images.githubusercontent.com/25664275/42294506-9b3492fc-7fe1-11e8-9c3d-a41e88827cc0.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#318