This project is read-only.
1
Vote

$Host.UI.Prompt does not use Caption in step pane

description

When using $Host.UI.Prompt the step pane shows “Prompt”, instead of the caption (see HostUiPrompt.png). When using $Host.UI.PromptForChoice the caption specified in the parameters is used.

file attachments

comments

jjhems wrote Jul 28, 2015 at 1:34 PM

Extra screenshot of the $Host.UI.PromptForChoice sample, which is of course the desired outcome.

BetaLyte wrote Jul 5, 2016 at 9:26 AM

You can archive this, but editing PSHostControl.cs line 463, which should be:
this.DoChangeWindowTitle("Prompt");
and change it to:
this.DoChangeWindowTitle(caption);