Skip to content
ConsoleMonster
Class

PromptSegmentValue

ConsoleMonster.Prompts

Namespace
ConsoleMonster.Prompts
Assembly
ConsoleMonster
Modifiers
sealed

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

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 required
role ConsoleMonster.Styling.ThemeToken required
priority int = 0 optional
icon string? = null optional
link string? = null optional

Properties

public string Text { get; } #

The literal segment text.

public ThemeToken Role { get; } #

The theme role used to colour this value.

public int Priority { get; } #

Higher values stay visible longer as width shrinks.

public string? Icon { get; } #

An optional icon key.