Class
PromptSegmentValue
ConsoleMonster.Prompts
Data for a prompt segment. The renderer owns all terminal markup.
Inheritance
- object
- PromptSegmentValue
Usage
Explore 2 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 2
- Method IPromptSegment.Evaluate
- Property PromptSegmentReading.Value
Constructors
public PromptSegmentValue(string text, ThemeToken role, int priority = 0, string? icon = null, string? link = null) #Creates a value with an optional icon key and a safe URL.
Parameters
- text string
- role ConsoleMonster.Styling.ThemeToken
- priority int = 0
- icon string? = null
- link string? = null
Inherited Methods
Properties
public int Priority { get; } #Higher values stay visible longer as width shrinks.