Skip to content
ConsoleMonster

Coming from Spectre.Console

Compare C# markup, widgets, live sessions and prompts, with the behaviour and gaps to check before migrating.

Keep your inventory collection and application logic, then replace the rendering and input boundaries. ConsoleMonster provides typed tables, composable widgets, prompts and event-driven live sessions in a core package with no package dependencies. The useful differences are adaptive object presentation, per-item runs and recording/export workflows; visual styles, Figlet fonts and renderable types are not interchangeable.

API map

Spectre.ConsoleConsoleMonsterDifference
AnsiConsole.MarkupLine, Markup.EscapeTerminal.WriteMarkupLine, Markup.EscapeSimilar tag dialect; escape collected data before interpolation.
AnsiConsole.WriteTerminal.WriteAccepts ConsoleMonster IWidget, not Spectre IRenderable.
TableTable, Table.For(rows)Typed presenters, priority columns and narrow-window cards.
Tree, Panel, RuleTree, Panel, RuleNew objects; no conversion of existing renderables.
AnsiConsole.Progress()ProgressBar, Lanes, LiveSessionUpdate handles rather than Spectre task contexts.
AnsiConsole.Status()Terminal.Status, Terminal.StatusAsyncScoped status; context updates change the text.
AnsiConsole.Live()LiveSession, RegionWidgetNamed regions and typed handles; dispose the session.
SelectionPrompt<T>, MultiSelectionPrompt<T>SelectPrompt<T>, MultiSelectPrompt<T>Return selected values; configurable grouping and previews.
TextPrompt<T>TextPrompt, NumberPrompt, PathPromptPick the prompt for the value type; not one generic conversion API.
ConfirmationPromptConfirmPrompt, TypedConfirmPromptTyped confirmation is available for consequential actions.
BarChart, BreakdownChartBarChart, StackedBarA stacked total is the nearest breakdown equivalent.
FigletTextLogoBuilt-in pixel lettering; no .flf font loader equivalent.
Grid, Columns, RowsConsoleMonster.Layout.LayoutGrid, Columns, RowsGrid layout is distinct from the interactive grid.
LayoutDashboard, Rows, Columns, RegionWidgetCompose the layout explicitly; no named split-tree API clone.
CalendarConsoleMonster.Widgets.CalendarMonth and year views with dated outcomes, culture-aware labels and ISO weeks. See the operations calendar.
Emoji shortcodesMarkup.Shortcodes = true, Shortcodes.ReplaceOff by default, so colons in data stay literal; Shortcodes.Register adds names.
Spectre.Console.CliConsoleMonster.CommandsCommandApp, Command, Option<T> and Argument<T> instead of settings classes with attributes; CommandBinding<TSettings> keeps a settings class.

Shared sample data

Use these rows for each comparison. The complete program under Try it includes its imports. For the snippets, import Spectre.Console on the left, and ConsoleMonster, ConsoleMonster.Widgets, ConsoleMonster.Layout, ConsoleMonster.Live, ConsoleMonster.Interactive, ConsoleMonster.Building and ConsoleMonster.Text on the right. Run the two versions separately to avoid type-name collisions. Thread, Task, LINQ and collection types use the ordinary .NET namespaces.

Every ConsoleMonster snippet uses one style: constructors and object initializers, with Table.For(rows).Column(...) for typed tables. Each widget also has a fluent spelling that starts from Ui (Ui.Panel().Title("Patch inventory")). The Try it block below has both, under its C# and C# fluent tabs, and three ways to write it translates between them.

var servers = new[] {
    new { Name = "FS01", Site = "Warsaw", Pending = 4, Status = "Pass" },
    new { Name = "SQL01", Site = "Dublin", Pending = 12, Status = "Warn" },
    new { Name = "WEB01", Site = "Berlin", Pending = 0, Status = "Pass" }
};

1. Markup, separators and a heading

Spectre.Console

AnsiConsole.MarkupLine($"[green]{Markup.Escape(servers[0].Name)}[/] ready");
AnsiConsole.Write(new Rule("Patch inventory"));
AnsiConsole.Write(new FigletText("Ops"));

ConsoleMonster (C# initializers)

Terminal.WriteMarkupLine($"[pass]{Markup.Escape(servers[0].Name)}[/] ready");
Terminal.Write(new Rule("Patch inventory"));
Terminal.Write(new Logo("Ops"));

Logo is an alternative heading style, not a Figlet font interpreter. ConsoleMonster supports [[/]], nested tags, hex and rgb colours and theme roles. Unknown tags are lenient by default; set Markup.Strict = true for exceptions or use Markup.Validate. :emoji: shortcodes are expanded only after Markup.Shortcodes = true, so colons in collected data stay literal. OSC 8 links depend on terminal support.

2. A table, a panel and a tree

Spectre.Console

var table = new Table().AddColumn("Name").AddColumn("Pending");
foreach (var s in servers)
    table.AddRow(Markup.Escape(s.Name), s.Pending.ToString());
AnsiConsole.Write(new Panel(table).Header("Patch inventory"));
var tree = new Tree("Sites");
foreach (var s in servers) tree.AddNode($"{s.Site}: {s.Name}");
AnsiConsole.Write(tree);

ConsoleMonster (C# initializers)

var table = Table.For(servers)
    .Column(s => s.Name)
    .Column(s => s.Pending);
Terminal.Write(new Panel(table, "Patch inventory"));
var tree = new Tree("Sites");
foreach (var s in servers) tree.Add($"{s.Site}: {s.Name}");
Terminal.Write(tree);

Use typed columns to retain numbers and choose presenters, aggregates and width priorities. Apply Markup.Escape to external text when constructing markup labels; do not assume table cells, prompts and markup writers all interpret strings identically.

Install-Module ConsoleMonster -Scope CurrentUser
PowerShellreport.ps1
$servers = @(
    [pscustomobject] @{ Name = 'FS01'; Site = 'Warsaw'; Pending = 4; Status = 'Pass' }
    [pscustomobject] @{ Name = 'SQL01'; Site = 'Dublin'; Pending = 12; Status = 'Warn' }
    [pscustomobject] @{ Name = 'WEB01'; Site = 'Berlin'; Pending = 0; Status = 'Pass' }
)
$servers | Show-ConsoleTable -Property Name, Site, Pending, Status -Title 'Patch inventory'
Full program
Import-Module ConsoleMonster

$servers = @(
    [pscustomobject] @{ Name = 'FS01'; Site = 'Warsaw'; Pending = 4; Status = 'Pass' }
    [pscustomobject] @{ Name = 'SQL01'; Site = 'Dublin'; Pending = 12; Status = 'Warn' }
    [pscustomobject] @{ Name = 'WEB01'; Site = 'Berlin'; Pending = 0; Status = 'Pass' }
)
$servers | Show-ConsoleTable -Property Name, Site, Pending, Status -Title 'Patch inventory'

Run: ./report.ps1

Terminal
dotnet new console -n InventoryReport
cd InventoryReport
dotnet add package ConsoleMonster
C#Program.cs
var servers = new[]
{
    new
    {
        Name = "FS01",
        Site = "Warsaw",
        Pending = 4,
        Status = "Pass"
    },
    new
    {
        Name = "SQL01",
        Site = "Dublin",
        Pending = 12,
        Status = "Warn"
    },
    new
    {
        Name = "WEB01",
        Site = "Berlin",
        Pending = 0,
        Status = "Pass"
    }
};
var table = Table.For(servers)
    .Column(s => s.Name)
    .Column(s => s.Site)
    .Column(s => s.Pending)
    .Column(s => s.Status, column =>
    {
        column.Presenter = CellPresenters.StatusWord;
    });
table.Title = "Patch inventory";
Terminal.Write(table);
Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Widgets;

var servers = new[]
{
    new
    {
        Name = "FS01",
        Site = "Warsaw",
        Pending = 4,
        Status = "Pass"
    },
    new
    {
        Name = "SQL01",
        Site = "Dublin",
        Pending = 12,
        Status = "Warn"
    },
    new
    {
        Name = "WEB01",
        Site = "Berlin",
        Pending = 0,
        Status = "Pass"
    }
};
var table = Table.For(servers)
    .Column(s => s.Name)
    .Column(s => s.Site)
    .Column(s => s.Pending)
    .Column(s => s.Status, column =>
    {
        column.Presenter = CellPresenters.StatusWord;
    });
table.Title = "Patch inventory";
Terminal.Write(table);

Run: dotnet run

Terminal
dotnet new console -n InventoryReport
cd InventoryReport
dotnet add package ConsoleMonster
C# fluentProgram.cs
var servers = new[]
{
    new
    {
        Name = "FS01",
        Site = "Warsaw",
        Pending = 4,
        Status = "Pass"
    },
    new
    {
        Name = "SQL01",
        Site = "Dublin",
        Pending = 12,
        Status = "Warn"
    },
    new
    {
        Name = "WEB01",
        Site = "Berlin",
        Pending = 0,
        Status = "Pass"
    }
};
var table = Ui.Table(servers)
    .Column(s => s.Name)
    .Column(s => s.Site)
    .Column(s => s.Pending)
    .Column(s => s.Status, column =>
    {
        column.Presenter(CellPresenters.StatusWord);
    })
    .Title("Patch inventory");
table.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Presenters;
using ConsoleMonster.Widgets;

var servers = new[]
{
    new
    {
        Name = "FS01",
        Site = "Warsaw",
        Pending = 4,
        Status = "Pass"
    },
    new
    {
        Name = "SQL01",
        Site = "Dublin",
        Pending = 12,
        Status = "Warn"
    },
    new
    {
        Name = "WEB01",
        Site = "Berlin",
        Pending = 0,
        Status = "Pass"
    }
};
var table = Ui.Table(servers)
    .Column(s => s.Name)
    .Column(s => s.Site)
    .Column(s => s.Pending)
    .Column(s => s.Status, column =>
    {
        column.Presenter(CellPresenters.StatusWord);
    })
    .Title("Patch inventory");
table.Show();

Run: dotnet run

Patch inventory 100 columns24-bitFull
Patch inventory 48 columns24-bitFull

The full report above also includes site and status columns. Its wide and narrow output comes from that exact program, rather than from either comparison snippet.

3. Progress, a status line and replaceable live content

Spectre.Console

AnsiConsole.Progress().Start(ctx => {
    var task = ctx.AddTask("Inventory", maxValue: servers.Length);
    foreach (var s in servers) { Thread.Sleep(100); task.Increment(1); }
});
AnsiConsole.Status().Start("Resolving inventory", ctx => {
    foreach (var s in servers) ctx.Status($"Resolving {s.Name}");
});
AnsiConsole.Live(new Spectre.Console.Text("Starting")).Start(ctx => {
    foreach (var s in servers) {
        ctx.UpdateTarget(new Spectre.Console.Text(s.Name));
        ctx.Refresh();
    }
});

ConsoleMonster (C# initializers)

var bar = new ProgressBar("Inventory", "inventory") { Total = servers.Length };
using (var session = new LiveSession(bar)) {
    session.Start();
    var handle = bar.Handle(session);
    foreach (var s in servers) { Thread.Sleep(100); handle.Advance(); }
    handle.Complete();
}
Terminal.Status("Resolving inventory", ctx => {
    foreach (var s in servers) ctx.Update($"Resolving {s.Name}");
});
var region = new RegionWidget("current", new TextBlock("Starting"));
using (var session = new LiveSession(region)) {
    session.Start();
    foreach (var s in servers) session.Region("current").Set(new TextBlock(s.Name));
}

These loops simulate short collection steps; put your actual work there. ConsoleMonster handles post events to a session, whose render loop coalesces redraws. Do not expect one visible frame per update. Use unique widget IDs and dispose sessions in failure paths. A status scope removes its spinner when work exits; redirected output gets plain status updates. See live sessions for output routing and runs for bounded per-item execution.

4. Selection, text and confirmation

Spectre.Console

string server = AnsiConsole.Prompt(new SelectionPrompt<string>()
    .Title("Target server").AddChoices(servers.Select(s => s.Name)));
string ticket = AnsiConsole.Prompt(new TextPrompt<string>("Change ticket"));
bool proceed = AnsiConsole.Prompt(new ConfirmationPrompt($"Review {server} for {ticket}?"));

ConsoleMonster (C# initializers)

string server = new SelectPrompt<string>("Target server", servers.Select(s => s.Name)).Show();
string ticket = new TextPrompt("Change ticket") { Required = true }.Show();
bool proceed = new ConfirmPrompt($"Review {server} for {ticket}?").Show();

Handle PromptCanceledException when the user cancels. For unattended execution pass values through your own application options; ConsoleMonster can use defaults or report a missing value instead of waiting indefinitely. Interactive screens show complete selection, text and typed-confirmation programs with recorded input.

5. Bars and proportions

Spectre.Console

var bars = new BarChart();
var breakdown = new BreakdownChart();
foreach (var s in servers) {
    bars.AddItem(s.Name, s.Pending, Spectre.Console.Color.Yellow);
    breakdown.AddItem(s.Name, s.Pending, Spectre.Console.Color.Yellow);
}
AnsiConsole.Write(bars);
AnsiConsole.Write(breakdown);

ConsoleMonster (C# initializers)

var bars = new BarChart();
var breakdown = new StackedBar();
foreach (var s in servers) {
    bars.Add(s.Name, s.Pending);
    breakdown.Add(s.Name, s.Pending);
}
Terminal.Write(bars);
Terminal.Write(breakdown);

Bars compare values; a stacked bar shows parts of a total. Review legend, zero-value and width behaviour rather than expecting identical pixels. ConsoleMonster also offers LineChart, Histogram and Sparkline.

6. Grid, columns and application layout

Spectre.Console

var grid = new Grid().AddColumn().AddColumn();
grid.AddRow("Warsaw", "Dublin");
AnsiConsole.Write(grid);
AnsiConsole.Write(new Columns(new Panel("FS01"), new Panel("SQL01")));
var layout = new Spectre.Console.Layout("root")
    .SplitColumns(new Spectre.Console.Layout("inventory"), new Spectre.Console.Layout("notes"));
layout["inventory"].Update(new Panel("FS01"));
layout["notes"].Update(new Panel("12 pending on SQL01"));
AnsiConsole.Write(layout);

ConsoleMonster (C# initializers)

Terminal.Write(new ConsoleMonster.Layout.LayoutGrid(2,
    new TextBlock("Warsaw"), new TextBlock("Dublin")));
Terminal.Write(new Columns(
    new Panel(new TextBlock("FS01")), new Panel(new TextBlock("SQL01"))));
var dashboard = new Dashboard("Inventory", new Rows(
    new Panel(new TextBlock("FS01"), "Inventory"),
    new Panel(new TextBlock("12 pending on SQL01"), "Notes")));
Terminal.Write(dashboard);

Dashboard takes a composed body. Use Rows/Columns for exact local arrangements and named RegionWidget objects when content changes.

Differences to know

  • Keep collection separate from display. A widget is a definition; Terminal.Write draws it and LiveSession controls its live lifetime.
  • Similar markup does not make the parsers interchangeable. Escape input and check strict-mode behaviour, supported links, colours and emoji before moving a shared markup string.
  • ConsoleMonster chooses colour depth and glyph tier for the host, including ASCII and plain output. A Nerd Font is not required; literal emoji still depend on your terminal and font.
  • Spectre renderables, custom renderers and extensions need rewriting against IWidget. Calendar maps to the marked month/year widget; custom Figlet fonts have no direct migration. Check the roadmap for planned capabilities; an item there is not an implemented feature.

What you get beyond this API mapping

Everyday output: the PowerShell module can present ordinary objects and opt into native output formatting; C# has typed presenters and object views. Live runs: track keyed item outcomes, progress, summaries and scrollback without managing each redraw. Recording and export: render frames to text, Markdown, HTML or SVG; record dashboard events or whole terminal sessions for their respective export/replay paths. Demo scripts: use copyable demos and the presenter tools.

The core has zero package dependencies. Markdown display and export belong to the ConsoleMonster.Markdown add-on: C# uses MarkdownExporter.Export, while PowerShell loads the bundled add-on when Export-ConsoleFrame -Format Markdown is requested. The Markdown and Graphics add-ons have their own dependencies. The .NET 8/10 core targets are AOT-compatible, with reflection-based inspection requiring explicit trimming care; this is not a claim that every integration or the PowerShell module is a native AOT executable. See installation and AOT limits and recording formats.

Sources

API comparisons use the Spectre.Console documentation and its widget reference, checked 25 October 2026. No maintenance-status argument is needed to use this guide.

Next

Edit this page on GitHub