N
N
NewDevLab2020-04-08 14:41:53
PowerShell
NewDevLab, 2020-04-08 14:41:53

How to hide the cursor?

Is there a way to hide the caret in the PowerShell console?
Version 5.1
I saw a variant with a separate exe in C, but I would like it without it.
Or where this C source is formatted as WinApi calls in PW.
Here it is: not working.
[Console]::CursorVisible = $false

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MaxKozlov, 2020-04-08
@NewDevLab

Hiding through [Console]::CursorVisible = $falseworks, but before the first click. Because its PSReadline module includes a new one.
if the module is unloaded, it hides for good

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question