Skip to content
ConsoleMonster
Class

StatusContext

ConsoleMonster.Output

Namespace
ConsoleMonster.Output
Assembly
ConsoleMonster
Implements
IDisposable
Modifiers
sealed

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

Methods

public void Dispose() #

Ends the status: the live line is removed (output written meanwhile stays).

Update 2 overloads
public void Update(string markup) #

Changes the status text.

Parameters

markup string required
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 required
The new text.

Properties

public bool IsLive { get; } #

Whether the status is drawn in place with a spinner (false: printed as plain lines).

public string Text { get; } #

The current status text, without markup.