intellij-powershell
intellij-powershell copied to clipboard
PowerShell terminal window: input is not properly processed as PTY
Consider this script:
$xxx = Read-Host "foo" -AsSecureString
If you run it in an IDE terminal (or any terminal, for that matter) and type anything in response to "foo:" prompt, the input will be replaced by stars, like this:
.\file.ps1
foo: *******
But in the PowerShell terminal, it doesn't work properly as PTY: it first inputs the unmasked value, and then shows the stars, like this:
C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe -File T:/Temp/untitled1/file.ps1
foo:fdsfsad
*******
This is strange and should not be so. Let's figure out why it happens, and what are we doing wrong (the last change there was done in scope of #90). Perhaps we need some another kind of execution console?