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
I have a line of PowerShell on the screen and want to do a find/replace.
ctrl+e,r
Is there a way to in a handler to suspend typing into the console, capture the input that is typed next and when enter is pressed execute and return back to console input?
The text was updated successfully, but these errors were encountered:
When in your handler, you can do anything you like. PSReadline won't capture any input, so if you call Console::ReadLine or whatever, you'll get that input.
Now the hard part is how to do this without messing up the display. I've been thinking about this some and I'll probably add a nice API at some point, but it's not a near term feature that I have planned.
InvokePrompt now takes an option int argument specifying the new Y where you want the prompt invoked - that should be sufficient to address the concern I mentioned above.
Beyond that, I have no plans for a generic way to prompt within a prompt, though it might come via another enhancement request.
I have a line of PowerShell on the screen and want to do a find/replace.
ctrl+e,r
Is there a way to in a handler to suspend typing into the console, capture the input that is typed next and when enter is pressed execute and return back to console input?
The text was updated successfully, but these errors were encountered: