InteractionMode
ConsoleMonster.Interactive
How prompts, menus and forms talk to the user.
Inheritance
- Enum
- InteractionMode
Usage
Explore 9 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Field InteractionMode.Accessible
- Field InteractionMode.Line
- Field InteractionMode.None
- Field InteractionMode.Rich
- Field InteractionMode.Snapshot
- Method InteractiveOptions.ResolveMode
- Property InteractiveOptions.Mode
Accepted by parameters 2
- Extension method InteractiveOptions.Mode
- Method InteractiveOptionsFluent.Mode
Inherited Methods
public string ToString(IFormatProvider? provider) #Obsolete("The provider argument is not used. Use ToString() instead.")Parameters
- provider IFormatProvider?
Returns
stringpublic string ToString(string? format, IFormatProvider? provider) #Obsolete("The provider argument is not used. Use ToString(String) instead.")Parameters
- format string?
- provider IFormatProvider?
Returns
stringValues
public const InteractionMode Rich #Raw keys and in-place redraws: filtering lists, focus bars, the app shell.
0public const InteractionMode Line #Line-based prompts: a question, then a typed answer. Used where raw keys or redraws are unavailable (PowerShell remoting, the ISE, consoles without VT).
1public const InteractionMode Accessible #Sequential plain prompts for screen readers and braille displays: numbered choices, no redraws, every state written as text (CONSOLEMONSTER_ACCESSIBLE=1).
2public const InteractionMode None #No user is there to answer (CI, redirected input, -NonInteractive): prompts return their default or fail with a clear message.
3public const InteractionMode Snapshot #Render an initialized application or PowerShell prompt without reading input. A typed prompt's answer-returning Show method cannot return a snapshot; use its Snapshot method.
4