Title: Text prompt Order: 0 RedirectFrom: prompt Description: "*Spectre.Console* has multiple input functions for helping receive strongly typed input from a user." Highlights: - Confirmation. - Strongly typed input. - Input restricted to specific items. - Secrets such as passwords or keys. --- Sometimes you want to get some input from the user, and for this you can use the `Prompt`. The use of prompts insides status or progress displays is not supported. ## Confirmation ```text Run prompt example? [y/n] (y): _ ``` ## Simple ```text What's your name? Patrik What's your age? 37 ``` ## Choices ```text What's your favorite fruit? [Apple/Banana/Orange] (Orange): _ ``` ## Validation ```text What's the secret number? 32 Too low What's the secret number? 102 Too high What's the secret number? _ ``` ## Secrets ```text Enter password: ************_ ``` ## Masks ```text Enter password: ------------_ ``` You can utilize a null character to completely hide input. ```text Enter password: _ ``` ## Optional ```text [Optional] Favorite color? _ ```