terminal: Terminal Preview 1.3 breaks Windows PowerShell 5 (32-bit x86)'s history save and view and its command line colors
Environment
Windows build number: Microsoft Windows [Version 10.0.19042.422] for x64 Windows Terminal version (if applicable): 1.3.2382.0
Using the default Terminal settings.json file and without any PowerShell profile files.
Steps to reproduce
- Make sure that Windows Terminal Preview is registered to be run as
wt.exe
in Settings -> Apps -> Apps and features -> App execution aliases, and log out and log in if needed to make the setting fully take effect. - Run this command from Start -> Run:
wt.exe "C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"
- Type
get-help gv -ful
with one L, press Tab. - Observe
get-help gv -Full
with 2 letters L, and the colors of that string. - Press Enter to run the command.
- Exit Terminal and restart it using the same command you previously used in Start -> Run.
- Press the up arrow key repeatedly.
Expected behavior
- In the
get-help
command you ran,get-help
was in yellow and-Full
was in a darker shade of gray than the other text. - After relaunching Terminal, you could use the up arrow key to see your command history, including the
get-help
command you just ran.
Actual behavior
- In the
get-help
command, all the text was the same color. - The command history was not accessible.
- If you now run PowerShell (x86) using the old console window, you see that the
get-help
command and other commands you ran in PowerShell within Terminal were not recorded in the history.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (8 by maintainers)
Commits related to this issue
- Revert "Always create a new environment block before we spawn a process (#7243)" This reverts commit 849243af995a05bcce046df010894b60d20ea145. References #7418 — committed to microsoft/terminal by DHowett 4 years ago
- Revert "Always create a new environment block before we spawn a process (#7243)" This reverts commit 849243af995a05bcce046df010894b60d20ea145. References #7418 (cherry picked from commit 4204d2535c... — committed to microsoft/terminal by DHowett 4 years ago
- Revert "Always create a new environment block before we spawn a process (#7243)" This reverts commit 849243af995a05bcce046df010894b60d20ea145. References #7418 (cherry picked from commit 4204d2535c... — committed to microsoft/terminal by DHowett 4 years ago
- [STABLE ONLY] Combined revert of Environment Block Changes Revert "Fix environment block creation (#7401)" This reverts commit 7886f16714a734fe1a122b9f22986d283d0f0a41. (cherry picked from commit e... — committed to microsoft/terminal by DHowett 4 years ago
- [STABLE ONLY] Combined revert of Environment Block Changes Revert "Fix environment block creation (#7401)" This reverts commit 7886f16714a734fe1a122b9f22986d283d0f0a41. (cherry picked from commit e... — committed to microsoft/terminal by DHowett 4 years ago
- [STABLE ONLY] Combined revert of Environment Block Changes Revert "Fix environment block creation (#7401)" This reverts commit 7886f16714a734fe1a122b9f22986d283d0f0a41. (cherry picked from commit e... — committed to microsoft/terminal by DHowett 4 years ago
- [STABLE ONLY] Combined revert of Environment Block Changes Revert "Fix environment block creation (#7401)" This reverts commit 7886f16714a734fe1a122b9f22986d283d0f0a41. (cherry picked from commit e... — committed to microsoft/terminal by DHowett 4 years ago
- [STABLE ONLY] Combined revert of Environment Block Changes Revert "Fix environment block creation (#7401)" This reverts commit 7886f16714a734fe1a122b9f22986d283d0f0a41. (cherry picked from commit e... — committed to microsoft/terminal by DHowett 4 years ago
- [STABLE ONLY] Combined revert of Environment Block Changes Revert "Fix environment block creation (#7401)" This reverts commit 7886f16714a734fe1a122b9f22986d283d0f0a41. (cherry picked from commit e... — committed to microsoft/terminal by DHowett 4 years ago
- [STABLE ONLY] Combined revert of Environment Block Changes Revert "Fix environment block creation (#7401)" This reverts commit 7886f16714a734fe1a122b9f22986d283d0f0a41. (cherry picked from commit e... — committed to microsoft/terminal by DHowett 4 years ago
- Combined revert of Environment Block Changes Revert "Fix environment block creation (#7401)" This reverts commit 7886f16714a734fe1a122b9f22986d283d0f0a41. (cherry picked from commit e46ba65665610f2... — committed to microsoft/terminal by DHowett 4 years ago
- Combined revert of Environment Block Changes (#12140) Revert "Fix environment block creation (#7401)" This reverts commit 7886f16714a734fe1a122b9f22986d283d0f0a41. (cherry picked from commit e4... — committed to microsoft/terminal by DHowett 2 years ago
I’m reverting the environment fix for 1.3’s move to stable this week because we do not otherwise have a good solution for this.