StatusContext
ConsoleMonster.Output
The running status of Terminal.Status: change its text with StatusContext.Update. On an interactive VT terminal it is a transient inline live area with a Spinner: console output and Terminal writes made meanwhile scroll above it, and the line is removed when the work ends. In redirected output, CI logs and plain mode each new text is printed once as a plain line (no spinner, no redraw), as Show-ConsoleStatusLine does. Updates are thread-safe.
Inheritance
- object
- StatusContext
Usage
Explore 8 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.
Accepted by parameters 8
- Extension method ITerminalTarget.Status
- Extension method ITerminalTarget.StatusAsync
- Method TerminalTargetExtensions.Status
- Method TerminalTargetExtensions.StatusAsync
- Method Terminal.Status
- Method Terminal.StatusAsync
- Method Terminal.StatusAsync``1
- Method Terminal.Status``1
Methods
public void Dispose() #Ends the status: the live line is removed (output written meanwhile stays).
public void Update(string markup) #Changes the status text.
Parameters
- markup string
- The new text, as markup ([muted]3 of 10[/]); escape values with Markup.Escape.
public void Update(RichText text) #Changes the status text.
Parameters
- text ConsoleMonster.Text.RichText
- The new text.
Inherited Methods
Properties
public bool IsLive { get; } #Whether the status is drawn in place with a spinner (false: printed as plain lines).