The Powershell initialization script scripts/WinPython_PS_Prompt.ps1 changes the color of the terminal.
|
### Colorize to distinguish |
|
$host.ui.RawUI.BackgroundColor = "Black" |
|
$host.ui.RawUI.ForegroundColor = "White" |
When calling WinPython_PS_Prompt.ps1 from other scripts one has to reset terminal colors afterwards (and if only to defaults) for it not to affect later terminal output.
Is there any objective necessity for it?
If not, I suggest removal of these calls.
--
For those running into this problem, a current fix in a parent script is to call
[Console]::ResetColor() # fix WinPython setting $host.ui.RawUI.BackgroundColor and .ForegroundColor
The Powershell initialization script
scripts/WinPython_PS_Prompt.ps1changes the color of the terminal.winpython/portable/scripts/WinPython_PS_Prompt.ps1
Lines 67 to 69 in 393758c
When calling
WinPython_PS_Prompt.ps1from other scripts one has to reset terminal colors afterwards (and if only to defaults) for it not to affect later terminal output.Is there any objective necessity for it?
If not, I suggest removal of these calls.
--
For those running into this problem, a current fix in a parent script is to call
[Console]::ResetColor() # fix WinPython setting $host.ui.RawUI.BackgroundColor and .ForegroundColor