mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
At startup, we need to save the current console mode before potentially enabling VT100 support. Then, when running an external command, we should use that initial console mode instead of whatever mode we changed it to. An application can't rely on the shell enabling VT100 because enabling by default can cause problems for some applications, therefore Windows applications must enable VT100 themselves.