Skip to content
ConsoleMonster

API Reference

Class

StatusContext

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 Write-ConsoleStatus 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() #
Returns: Void

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

Update 2 overloads
public Void Update(String markup) #
Returns: Void

Changes the status text.

Parameters

markup System.String requiredposition: 0
The new text, as markup ([muted]3 of 10[/]); escape values with Markup.Escape.
public Void Update(RichText text) #
Returns: Void

Changes the status text.

Parameters

text ConsoleMonster.Text.RichText requiredposition: 0
The new text.

Properties

public Boolean 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.