You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Write-Progress since 7.2.0 sets CursorVisible to $true #16412
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime
Write-Progress shouldn't affect the state of CursorVisible
Actual behavior
PS > .\script.ps1
Before wp - False
After wp - True
Error details
No response
Environment data
Name Value
---------
PSVersion 7.2.0
PSEdition Core
GitCommitId 7.2.0
OS Microsoft Windows 10.0.22000
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
I see where the cursor visibility is being changed, I'll submit a PR, should be a simple fix. Ok, hit an issue, on non-Windows, [Console]::CursorVisible is not supported. This means it can't read if the cursor is currently visible or not. So the problem is we don't want to just rely on the current cursor visibility as rendering progress would show the cursor. So think the only thing we can do is support this for Windows for now.
Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime
Activity
daxian-dbw commentedon Nov 10, 2021
Steve Lee (@SteveL-MSFT) can you please take a look to see if this behavior is intentional?
SteveL-MSFT commentedon Jan 20, 2022
I see where the cursor visibility is being changed, I'll submit a PR, should be a simple fix. Ok, hit an issue, on non-Windows,
[Console]::CursorVisibleis not supported. This means it can't read if the cursor is currently visible or not. So the problem is we don't want to just rely on the current cursor visibility as rendering progress would show the cursor. So think the only thing we can do is support this for Windows for now.