Each specimen is what the code beside it printed, at a fixed width and the en-US culture. Its three tabs show PowerShell, C# initializers and C# fluent calls. PowerShell captures cover Windows PowerShell 5.1 and PowerShell 7. Each snippet opens its complete program, with the Import-Module or using lines, under "Full program". Three ways to write it explains the translation.
Widgets
Every ConsoleMonster widget with its PowerShell and C# source. Switch the colour and glyph tier to see each one exactly as a console of that kind draws it.
╭─ Nightly checks ─ lab01.contoso.com ─╮ │ ✓ Discover › ✓ Collect › ⠋ Evaluate │ │ 2.1s 14s 64% │ │ ███████████████████████████████ 500 │ │ █ ✓ Passed 412 82% │ │ █ ▲ Warnings 51 10% │ │ █ ✗ Failed 23 5% │ │ █ – Skipped 14 3% │ │ rules/s ▃▃▃▃▄▄▄▄▅▅▅▆▅▆▇▆▇▇▇█ 57/s │ ╰──────────────────────────────────────╯
╭─ Nightly checks ─ lab01.contoso.com ─╮ │ ✓ Discover › ✓ Collect › ⠋ Evaluate │ │ 2.1s 14s 64% │ │ ███████████████████████████████ 500 │ │ █ ✓ Passed 412 82% │ │ █ ▲ Warnings 51 10% │ │ █ ✗ Failed 23 5% │ │ █ – Skipped 14 3% │ │ rules/s ▃▃▃▃▄▄▄▄▅▅▅▆▅▆▇▆▇▇▇█ 57/s │ ╰──────────────────────────────────────╯
┌─ Nightly checks ─ lab01.contoso.com ─┐ │ √ Discover › √ Collect › | Evaluate │ │ 2.1s 14s 64% │ │ ███████████████████████████████ 500 │ │ █ √ Passed 412 82% │ │ █ ▲ Warnings 51 10% │ │ █ × Failed 23 5% │ │ █ – Skipped 14 3% │ │ rules/s ░░░▒▒▒▒▒▒▓▓▓▓▓▓▓█▓██ 57/s │ └──────────────────────────────────────┘
+- Nightly checks - lab01.contoso.com -+ | [OK] Discover 2.1s | | [OK] Collect 14s | | [BUSY] Evaluate 64% | | #########################===+-- 500 | | # + Passed 412 82% | | = ! Warnings 51 10% | | + x Failed 23 5% | | - - Skipped 14 3% | | rules/s ----====+++*+*#*###@ 57/s | +--------------------------------------+
Text
Markup, rules and pixel lettering. Text is measured in terminal cells, so emoji and CJK keep the grid.
Text and markup
60 × 2Spectre-style markup: theme roles, colours and decorations, reduced for each tier.
Deployed in 48 s: √ 12 passed ▲ 2 warned ✗ 1 failed Decorations: bold dim underline struck invert
Deployed in 48 s: √ 12 passed ▲ 2 warned ✗ 1 failed Decorations: bold dim underline struck invert
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
Write-ConsoleText -Markup '[bold]Deployed[/] in [accent]48 s[/]: [pass]√ 12 passed[/] [warn]▲ 2 warned[/] [fail]✗ 1 failed[/]'
Write-ConsoleText -Markup '[italic]Decorations:[/] [bold]bold[/] [dim]dim[/] [underline]underline[/] [strikethrough]struck[/] [invert] invert [/]'Full program
Import-Module ConsoleMonster
Write-ConsoleText -Markup '[bold]Deployed[/] in [accent]48 s[/]: [pass]√ 12 passed[/] [warn]▲ 2 warned[/] [fail]✗ 1 failed[/]'
Write-ConsoleText -Markup '[italic]Decorations:[/] [bold]bold[/] [dim]dim[/] [underline]underline[/] [strikethrough]struck[/] [invert] invert [/]'Terminal.Write(TextBlock.FromMarkup("[bold]Deployed[/] in [accent]48 s[/]: "
+ "[pass]√ 12 passed[/] [warn]▲ 2 warned[/] [fail]✗ 1 failed[/]"));
Terminal.Write(
TextBlock.FromMarkup(
"[italic]Decorations:[/] [bold]bold[/] [dim]dim[/] [underline]underline[/] "
+ "[strikethrough]struck[/] [invert] invert [/]"));Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
Terminal.Write(TextBlock.FromMarkup("[bold]Deployed[/] in [accent]48 s[/]: "
+ "[pass]√ 12 passed[/] [warn]▲ 2 warned[/] [fail]✗ 1 failed[/]"));
Terminal.Write(
TextBlock.FromMarkup(
"[italic]Decorations:[/] [bold]bold[/] [dim]dim[/] [underline]underline[/] "
+ "[strikethrough]struck[/] [invert] invert [/]"));Ui.Markup("[bold]Deployed[/] in [accent]48 s[/]: "
+ "[pass]√ 12 passed[/] [warn]▲ 2 warned[/] [fail]✗ 1 failed[/]")
.Show();
Ui.Markup("[italic]Decorations:[/] [bold]bold[/] [dim]dim[/] [underline]underline[/] "
+ "[strikethrough]struck[/] [invert] invert [/]")
.Show();
Full program
using ConsoleMonster;
Ui.Markup("[bold]Deployed[/] in [accent]48 s[/]: "
+ "[pass]√ 12 passed[/] [warn]▲ 2 warned[/] [fail]✗ 1 failed[/]")
.Show();
Ui.Markup("[italic]Decorations:[/] [bold]bold[/] [dim]dim[/] [underline]underline[/] "
+ "[strikethrough]struck[/] [invert] invert [/]")
.Show();
Rule
60 × 2A horizontal line with an optional title, the separator inside panels and reports.
── Replication ───────────────────────────────────────────── ────────────────────────────────────────────────────────────
── Replication ───────────────────────────────────────────── ────────────────────────────────────────────────────────────
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleRule -Title '[bold]Replication[/]' | Show-Console
New-ConsoleRule | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleRule -Title '[bold]Replication[/]' | Show-Console
New-ConsoleRule | Show-ConsoleTerminal.Write(new Rule("[bold]Replication[/]"));
Terminal.Write(new Rule());Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
Terminal.Write(new Rule("[bold]Replication[/]"));
Terminal.Write(new Rule());Ui.Rule().Title("[bold]Replication[/]").Show();
Ui.Rule().Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
Ui.Rule().Title("[bold]Replication[/]").Show();
Ui.Rule().Show();
Logo
60 × 5Large pixel lettering with a gradient and a tagline, for the top of a tool.
█▄ ▄█ ▄▀▀▀▄ █ █ ▄▀▀▀▀ ▀▀█▀▀ █▀▀▀▀ █▀▀▀▄ █ █ █ █ █ █▀▄ █ ▀▄▄▄ █ █▄▄▄ █▄▄▄▀ █ █ █ █ █ ▀█ █ █ █ █ ▀▄ ▀ ▀ ▀▀▀ ▀ ▀ ▀▀▀▀ ▀ ▀▀▀▀▀ ▀ ▀ zero-dependency console rendering
█▄ ▄█ ▄▀▀▀▄ █ █ ▄▀▀▀▀ ▀▀█▀▀ █▀▀▀▀ █▀▀▀▄ █ █ █ █ █ █▀▄ █ ▀▄▄▄ █ █▄▄▄ █▄▄▄▀ █ █ █ █ █ ▀█ █ █ █ █ ▀▄ ▀ ▀ ▀▀▀ ▀ ▀ ▀▀▀▀ ▀ ▀▀▀▀▀ ▀ ▀ zero-dependency console rendering
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleLogo 'Monster' -Tagline '[muted]zero-dependency console rendering[/]' | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleLogo 'Monster' -Tagline '[muted]zero-dependency console rendering[/]' | Show-ConsoleTerminal.Write(new Logo("Monster", "[muted]zero-dependency console rendering[/]"));Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
Terminal.Write(new Logo("Monster", "[muted]zero-dependency console rendering[/]"));Ui.Logo().Text("Monster").Tagline("[muted]zero-dependency console rendering[/]").Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
Ui.Logo().Text("Monster").Tagline("[muted]zero-dependency console rendering[/]").Show();
Layout
Containers that place other widgets. Any widget can sit inside any container, including a live dashboard.
Panel
60 × 3A border around any widget, with a title, a caption on the right and a footer.
╭─ Forest ───────────────────────────────── ad.adatum.com ─╮ │ Four controllers answered. DC02 lags by 42 minutes. │ ╰────────────────────────────────────────── checked 14:30 ─╯
╭─ Forest ───────────────────────────────── ad.adatum.com ─╮ │ Four controllers answered. DC02 lags by 42 minutes. │ ╰────────────────────────────────────────── checked 14:30 ─╯
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
$panelParameters = @{
Title = '[bold]Forest[/]'
HeaderRight = 'ad.adatum.com'
Caption = '[muted]checked 14:30[/]'
}
New-ConsolePanel @panelParameters -Content {
New-ConsoleText -Markup 'Four controllers answered. [warn]DC02[/] lags by 42 minutes.'
} | Show-ConsoleFull program
Import-Module ConsoleMonster
$panelParameters = @{
Title = '[bold]Forest[/]'
HeaderRight = 'ad.adatum.com'
Caption = '[muted]checked 14:30[/]'
}
New-ConsolePanel @panelParameters -Content {
New-ConsoleText -Markup 'Four controllers answered. [warn]DC02[/] lags by 42 minutes.'
} | Show-ConsoleTerminal.Write(new Panel(
TextBlock.FromMarkup("Four controllers answered. [warn]DC02[/] lags by 42 minutes."),
"[bold]Forest[/]") { HeaderRight = "ad.adatum.com", Caption = "[muted]checked 14:30[/]" });Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
Terminal.Write(new Panel(
TextBlock.FromMarkup("Four controllers answered. [warn]DC02[/] lags by 42 minutes."),
"[bold]Forest[/]") { HeaderRight = "ad.adatum.com", Caption = "[muted]checked 14:30[/]" });Ui.Panel()
.Title("[bold]Forest[/]")
.HeaderRight("ad.adatum.com")
.Caption("[muted]checked 14:30[/]")
.Content(panelContent =>
{
panelContent.Markup("Four controllers answered. [warn]DC02[/] lags by 42 minutes.");
})
.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
Ui.Panel()
.Title("[bold]Forest[/]")
.HeaderRight("ad.adatum.com")
.Caption("[muted]checked 14:30[/]")
.Content(panelContent =>
{
panelContent.Markup("Four controllers answered. [warn]DC02[/] lags by 42 minutes.");
})
.Show();
Rows and columns
60 × 5Stack widgets vertically or side by side; columns share the width by weight.
╭─ Results ─────────────────╮ ╭─ Problems ─────────────────╮ │ √ 412 passed │ │ ✗ 23 failed │ │ ▲ 51 warnings │ │ - 14 skipped │ ╰───────────────────────────╯ ╰────────────────────────────╯ ── 2 domains, 10 controllers ───────────────────────────────
╭─ Results ─────────────────╮ ╭─ Problems ─────────────────╮ │ √ 412 passed │ │ ✗ 23 failed │ │ ▲ 51 warnings │ │ - 14 skipped │ ╰───────────────────────────╯ ╰────────────────────────────╯ ── 2 domains, 10 controllers ───────────────────────────────
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleRows -Content {
New-ConsoleColumns -Content {
New-ConsolePanel -Title 'Results' -Content {
"[pass]√[/] 412 passed`n[warn]▲[/] 51 warnings"
}
New-ConsolePanel -Title 'Problems' -Content {
"[fail]✗[/] 23 failed`n[muted]-[/] 14 skipped"
}
}
New-ConsoleRule '[muted]2 domains, 10 controllers[/]'
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleRows -Content {
New-ConsoleColumns -Content {
New-ConsolePanel -Title 'Results' -Content {
"[pass]√[/] 412 passed`n[warn]▲[/] 51 warnings"
}
New-ConsolePanel -Title 'Problems' -Content {
"[fail]✗[/] 23 failed`n[muted]-[/] 14 skipped"
}
}
New-ConsoleRule '[muted]2 domains, 10 controllers[/]'
} | Show-ConsolePanel results = new Panel(
TextBlock.FromMarkup("[pass]√[/] 412 passed\n[warn]▲[/] 51 warnings"),
"Results");
Panel problems = new Panel(
TextBlock.FromMarkup("[fail]✗[/] 23 failed\n[muted]-[/] 14 skipped"),
"Problems");
Terminal.Write(new Rows()
.Add(new Columns(results, problems))
.Add(new Rule("[muted]2 domains, 10 controllers[/]")));Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
Panel results = new Panel(
TextBlock.FromMarkup("[pass]√[/] 412 passed\n[warn]▲[/] 51 warnings"),
"Results");
Panel problems = new Panel(
TextBlock.FromMarkup("[fail]✗[/] 23 failed\n[muted]-[/] 14 skipped"),
"Problems");
Terminal.Write(new Rows()
.Add(new Columns(results, problems))
.Add(new Rule("[muted]2 domains, 10 controllers[/]")));Panel results = Ui.Panel().Title("Results").Content(panelContent =>
{
panelContent.Markup("[pass]√[/] 412 passed\n[warn]▲[/] 51 warnings");
});
Panel problems = Ui.Panel().Title("Problems").Content(panelContent =>
{
panelContent.Markup("[fail]✗[/] 23 failed\n[muted]-[/] 14 skipped");
});
Ui.Rows().Add(Ui.Columns().Content(columnsContent =>
{
columnsContent.Add(results);
columnsContent.Add(problems);
})).Add(Ui.Rule().Title("[muted]2 domains, 10 controllers[/]")).Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
Panel results = Ui.Panel().Title("Results").Content(panelContent =>
{
panelContent.Markup("[pass]√[/] 412 passed\n[warn]▲[/] 51 warnings");
});
Panel problems = Ui.Panel().Title("Problems").Content(panelContent =>
{
panelContent.Markup("[fail]✗[/] 23 failed\n[muted]-[/] 14 skipped");
});
Ui.Rows().Add(Ui.Columns().Content(columnsContent =>
{
columnsContent.Add(results);
columnsContent.Add(problems);
})).Add(Ui.Rule().Title("[muted]2 domains, 10 controllers[/]")).Show();
Grid
60 × 9Equal cells in a fixed number of columns, filled left to right.
╭─ DC01 ─────────────────────╮ ╭─ DC02 ────────────────────╮ │ √ healthy │ │ ▲ lagging │ ╰────────────────────────────╯ ╰───────────────────────────╯ ╭─ DC03 ─────────────────────╮ ╭─ DC04 ────────────────────╮ │ √ healthy │ │ ✗ offline │ ╰────────────────────────────╯ ╰───────────────────────────╯ ╭─ DC05 ─────────────────────╮ │ √ healthy │ ╰────────────────────────────╯
╭─ DC01 ─────────────────────╮ ╭─ DC02 ────────────────────╮ │ √ healthy │ │ ▲ lagging │ ╰────────────────────────────╯ ╰───────────────────────────╯ ╭─ DC03 ─────────────────────╮ ╭─ DC04 ────────────────────╮ │ √ healthy │ │ ✗ offline │ ╰────────────────────────────╯ ╰───────────────────────────╯ ╭─ DC05 ─────────────────────╮ │ √ healthy │ ╰────────────────────────────╯
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleLayoutGrid -Columns 3 -Content {
New-ConsolePanel -Title 'DC01' -Content { '[pass]√ healthy[/]' }
New-ConsolePanel -Title 'DC02' -Content { '[warn]▲ lagging[/]' }
New-ConsolePanel -Title 'DC03' -Content { '[pass]√ healthy[/]' }
New-ConsolePanel -Title 'DC04' -Content { '[fail]✗ offline[/]' }
New-ConsolePanel -Title 'DC05' -Content { '[pass]√ healthy[/]' }
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleLayoutGrid -Columns 3 -Content {
New-ConsolePanel -Title 'DC01' -Content { '[pass]√ healthy[/]' }
New-ConsolePanel -Title 'DC02' -Content { '[warn]▲ lagging[/]' }
New-ConsolePanel -Title 'DC03' -Content { '[pass]√ healthy[/]' }
New-ConsolePanel -Title 'DC04' -Content { '[fail]✗ offline[/]' }
New-ConsolePanel -Title 'DC05' -Content { '[pass]√ healthy[/]' }
} | Show-ConsoleTerminal.Write(new LayoutGrid(
3,
new Panel(TextBlock.FromMarkup("[pass]√ healthy[/]"), "DC01"),
new Panel(TextBlock.FromMarkup("[warn]▲ lagging[/]"), "DC02"),
new Panel(TextBlock.FromMarkup("[pass]√ healthy[/]"), "DC03"),
new Panel(TextBlock.FromMarkup("[fail]✗ offline[/]"), "DC04"),
new Panel(TextBlock.FromMarkup("[pass]√ healthy[/]"), "DC05")));Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
Terminal.Write(new LayoutGrid(
3,
new Panel(TextBlock.FromMarkup("[pass]√ healthy[/]"), "DC01"),
new Panel(TextBlock.FromMarkup("[warn]▲ lagging[/]"), "DC02"),
new Panel(TextBlock.FromMarkup("[pass]√ healthy[/]"), "DC03"),
new Panel(TextBlock.FromMarkup("[fail]✗ offline[/]"), "DC04"),
new Panel(TextBlock.FromMarkup("[pass]√ healthy[/]"), "DC05")));Ui.LayoutGrid().Columns(3).Content(layoutGridContent =>
{
layoutGridContent.Panel(p => p.Title("DC01").Content(panelContent =>
{
panelContent.Markup("[pass]√ healthy[/]");
}));
layoutGridContent.Panel(p => p.Title("DC02").Content(panelContent =>
{
panelContent.Markup("[warn]▲ lagging[/]");
}));
layoutGridContent.Panel(p => p.Title("DC03").Content(panelContent =>
{
panelContent.Markup("[pass]√ healthy[/]");
}));
layoutGridContent.Panel(p => p.Title("DC04").Content(panelContent =>
{
panelContent.Markup("[fail]✗ offline[/]");
}));
layoutGridContent.Panel(p => p.Title("DC05").Content(panelContent =>
{
panelContent.Markup("[pass]√ healthy[/]");
}));
}).Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
Ui.LayoutGrid().Columns(3).Content(layoutGridContent =>
{
layoutGridContent.Panel(p => p.Title("DC01").Content(panelContent =>
{
panelContent.Markup("[pass]√ healthy[/]");
}));
layoutGridContent.Panel(p => p.Title("DC02").Content(panelContent =>
{
panelContent.Markup("[warn]▲ lagging[/]");
}));
layoutGridContent.Panel(p => p.Title("DC03").Content(panelContent =>
{
panelContent.Markup("[pass]√ healthy[/]");
}));
layoutGridContent.Panel(p => p.Title("DC04").Content(panelContent =>
{
panelContent.Markup("[fail]✗ offline[/]");
}));
layoutGridContent.Panel(p => p.Title("DC05").Content(panelContent =>
{
panelContent.Markup("[pass]√ healthy[/]");
}));
}).Show();
Padding and align
60 × 5Space around a widget, and placement inside the space it is given.
╭─ Align ───────────────────╮ ╭─ Padding ──────────────────╮ │ centred │ │ │ │ │ │ two cells of padding │ │ │ │ │ ╰───────────────────────────╯ ╰────────────────────────────╯
╭─ Align ───────────────────╮ ╭─ Padding ──────────────────╮ │ centred │ │ │ │ │ │ two cells of padding │ │ │ │ │ ╰───────────────────────────╯ ╰────────────────────────────╯
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleColumns -Content {
New-ConsolePanel -Title 'Align' -Content {
New-ConsoleRegion -Horizontal Center -Content { '[bold]centred[/]' }
}
New-ConsolePanel -Title 'Padding' -Content {
New-ConsoleRegion -Padding 2, 1 -Content { 'two cells of padding' }
}
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleColumns -Content {
New-ConsolePanel -Title 'Align' -Content {
New-ConsoleRegion -Horizontal Center -Content { '[bold]centred[/]' }
}
New-ConsolePanel -Title 'Padding' -Content {
New-ConsoleRegion -Padding 2, 1 -Content { 'two cells of padding' }
}
} | Show-ConsolePanel left = new Panel(new Align(TextBlock.FromMarkup("[bold]centred[/]")), "Align");
Panel right = new Panel(new Padding(new TextBlock("two cells of padding"), 2, 1, 2, 1), "Padding");
Terminal.Write(new Columns(left, right));Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
Panel left = new Panel(new Align(TextBlock.FromMarkup("[bold]centred[/]")), "Align");
Panel right = new Panel(new Padding(new TextBlock("two cells of padding"), 2, 1, 2, 1), "Padding");
Terminal.Write(new Columns(left, right));Panel left = Ui.Panel().Title("Align").Content(panelContent =>
{
panelContent.Align(align => align.Content(alignContent =>
{
alignContent.Markup("[bold]centred[/]");
}));
});
Panel right = Ui.Panel().Title("Padding").Content(panelContent =>
{
panelContent.Padding(padding => padding.Left(2)
.Top(1)
.Right(2)
.Bottom(1)
.Content(paddingContent =>
{
paddingContent.Text("two cells of padding");
}));
});
Ui.Columns().Content(columnsContent =>
{
columnsContent.Add(left);
columnsContent.Add(right);
}).Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
Panel left = Ui.Panel().Title("Align").Content(panelContent =>
{
panelContent.Align(align => align.Content(alignContent =>
{
alignContent.Markup("[bold]centred[/]");
}));
});
Panel right = Ui.Panel().Title("Padding").Content(panelContent =>
{
panelContent.Padding(padding => padding.Left(2)
.Top(1)
.Right(2)
.Bottom(1)
.Content(paddingContent =>
{
paddingContent.Text("two cells of padding");
}));
});
Ui.Columns().Content(columnsContent =>
{
columnsContent.Add(left);
columnsContent.Add(right);
}).Show();
Stack
60 × 5Layers drawn on top of each other: a badge over a chart.
╭─ Stack ───────────────────────────── badge over a chart ─╮ │ ▁▃ LIVE │ │ ▁▃▂▄▅▄▆█▇████████ │ │ ▄▄▄▅▇███████████████████ │ ╰──────────────────────────────────────────────────────────╯
╭─ Stack ───────────────────────────── badge over a chart ─╮ │ ▁▃ LIVE │ │ ▁▃▂▄▅▄▆█▇████████ │ │ ▄▄▄▅▇███████████████████ │ ╰──────────────────────────────────────────────────────────╯
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
$load = 12, 14, 13, 18, 22, 26, 25, 31, 36, 34, 40, 44, 41, 47, 52, 49, 55, 61, 58, 64, 70, 66, 73,
79
New-ConsolePanel -Title 'Stack' -HeaderRight 'badge over a chart' -Content {
New-ConsoleStack -Content {
New-ConsoleChart -Height 3 -NoLatest -Type Sparkline -Values $load
New-ConsoleRegion -Horizontal Right -Content { '[pass] LIVE [/]' }
}
} | Show-ConsoleFull program
Import-Module ConsoleMonster
$load = 12, 14, 13, 18, 22, 26, 25, 31, 36, 34, 40, 44, 41, 47, 52, 49, 55, 61, 58, 64, 70, 66, 73,
79
New-ConsolePanel -Title 'Stack' -HeaderRight 'badge over a chart' -Content {
New-ConsoleStack -Content {
New-ConsoleChart -Height 3 -NoLatest -Type Sparkline -Values $load
New-ConsoleRegion -Horizontal Right -Content { '[pass] LIVE [/]' }
}
} | Show-ConsoleSparkline load = new Sparkline()
{
Height = 3,
ShowLatest = false
}
.Values(new double[] { 12, 14, 13, 18, 22, 26, 25, 31, 36, 34, 40, 44 })
.Values(new double[] { 41, 47, 52, 49, 55, 61, 58, 64, 70, 66, 73, 79 });
Align badge = new Align(TextBlock.FromMarkup("[pass] LIVE [/]"), HorizontalAlignment.Right);
Terminal.Write(new Panel(new Stack(load, badge), "Stack") { HeaderRight = "badge over a chart" });Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
Sparkline load = new Sparkline()
{
Height = 3,
ShowLatest = false
}
.Values(new double[] { 12, 14, 13, 18, 22, 26, 25, 31, 36, 34, 40, 44 })
.Values(new double[] { 41, 47, 52, 49, 55, 61, 58, 64, 70, 66, 73, 79 });
Align badge = new Align(TextBlock.FromMarkup("[pass] LIVE [/]"), HorizontalAlignment.Right);
Terminal.Write(new Panel(new Stack(load, badge), "Stack") { HeaderRight = "badge over a chart" });Sparkline load = Ui.Sparkline()
.Height(3)
.ShowLatest(false)
.Values(new double[] { 12, 14, 13, 18, 22, 26, 25, 31, 36, 34, 40, 44 })
.Values(new double[] { 41, 47, 52, 49, 55, 61, 58, 64, 70, 66, 73, 79 });
Align badge = Ui.Align().Horizontal(HorizontalAlignment.Right).Content(alignContent =>
{
alignContent.Markup("[pass] LIVE [/]");
});
Ui.Panel().Title("Stack").HeaderRight("badge over a chart").Content(panelContent =>
{
panelContent.Stack(stack => stack.Content(stackContent =>
{
stackContent.Add(load);
stackContent.Add(badge);
}));
}).Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
Sparkline load = Ui.Sparkline()
.Height(3)
.ShowLatest(false)
.Values(new double[] { 12, 14, 13, 18, 22, 26, 25, 31, 36, 34, 40, 44 })
.Values(new double[] { 41, 47, 52, 49, 55, 61, 58, 64, 70, 66, 73, 79 });
Align badge = Ui.Align().Horizontal(HorizontalAlignment.Right).Content(alignContent =>
{
alignContent.Markup("[pass] LIVE [/]");
});
Ui.Panel().Title("Stack").HeaderRight("badge over a chart").Content(panelContent =>
{
panelContent.Stack(stack => stack.Content(stackContent =>
{
stackContent.Add(load);
stackContent.Add(badge);
}));
}).Show();
Status and progress
The widgets a live session updates: facts, steps, trees, bars, phases, spinners and the log region.
Key/value list
60 × 5Aligned facts with optional status marks, as a summary beside a run.
Module ConsoleMonster Version 0.0.4 → 2.0.0 Frameworks netstandard2.0, net472, net8.0 Signing – skipped Tests ▲ 1 skipped on PowerShell 7
Module ConsoleMonster Version 0.0.4 → 2.0.0 Frameworks netstandard2.0, net472, net8.0 Signing – skipped Tests ▲ 1 skipped on PowerShell 7
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleKeyValue -Markup -InputObject ([ordered] @{
Module = '[bold]ConsoleMonster[/]'
Version = '0.0.4 [muted]→[/] [bold]2.0.0[/]'
Frameworks = 'netstandard2.0, net472, net8.0'
}) -Content {
[pscustomobject]@{ Key = 'Signing'; Value = 'skipped'; Status = 'Skip' }
[pscustomobject]@{ Key = 'Tests'; Value = '1 skipped on PowerShell 7'; Status = 'Warn' }
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleKeyValue -Markup -InputObject ([ordered] @{
Module = '[bold]ConsoleMonster[/]'
Version = '0.0.4 [muted]→[/] [bold]2.0.0[/]'
Frameworks = 'netstandard2.0, net472, net8.0'
}) -Content {
[pscustomobject]@{ Key = 'Signing'; Value = 'skipped'; Status = 'Skip' }
[pscustomobject]@{ Key = 'Tests'; Value = '1 skipped on PowerShell 7'; Status = 'Warn' }
} | Show-ConsoleTerminal.Write(new KeyValueList()
.Add("Module", "[bold]ConsoleMonster[/]")
.Add("Version", "0.0.4 [muted]→[/] [bold]2.0.0[/]")
.Add("Frameworks", "netstandard2.0, net472, net8.0")
.Add("Signing", "skipped", StatusKind.Skip)
.Add("Tests", "1 skipped on PowerShell 7", StatusKind.Warn));Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Terminal.Write(new KeyValueList()
.Add("Module", "[bold]ConsoleMonster[/]")
.Add("Version", "0.0.4 [muted]→[/] [bold]2.0.0[/]")
.Add("Frameworks", "netstandard2.0, net472, net8.0")
.Add("Signing", "skipped", StatusKind.Skip)
.Add("Tests", "1 skipped on PowerShell 7", StatusKind.Warn));Ui.KeyValue()
.Add("Module", "[bold]ConsoleMonster[/]")
.Add("Version", "0.0.4 [muted]→[/] [bold]2.0.0[/]")
.Add("Frameworks", "netstandard2.0, net472, net8.0")
.Add("Signing", "skipped", StatusKind.Skip)
.Add("Tests", "1 skipped on PowerShell 7", StatusKind.Warn)
.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
Ui.KeyValue()
.Add("Module", "[bold]ConsoleMonster[/]")
.Add("Version", "0.0.4 [muted]→[/] [bold]2.0.0[/]")
.Add("Frameworks", "netstandard2.0, net472, net8.0")
.Add("Signing", "skipped", StatusKind.Skip)
.Add("Tests", "1 skipped on PowerShell 7", StatusKind.Warn)
.Show();
Status list
60 × 6Steps with a status symbol and a detail on the right.
✓ Restore NuGet packages 1.6 s ✓ Compile Orion 4.7 s ▲ Run Pester on PowerShell 7 1 skipped – Sign module files skipped ⠋ Pack Orion.2.0.0.nupkg ○ Publish to PowerShell Gallery
✓ Restore NuGet packages 1.6 s ✓ Compile Orion 4.7 s ▲ Run Pester on PowerShell 7 1 skipped – Sign module files skipped ⠋ Pack Orion.2.0.0.nupkg ○ Publish to PowerShell Gallery
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleStatusList -Content {
[pscustomobject]@{ Label = 'Restore NuGet packages'; Status = 'Pass'; Detail = '1.6 s' }
[pscustomobject]@{ Label = 'Compile Orion'; Status = 'Pass'; Detail = '4.7 s' }
[pscustomobject]@{ Label = 'Run Pester on PowerShell 7'; Status = 'Warn'; Detail = '1 skipped' }
[pscustomobject]@{ Label = 'Sign module files'; Status = 'Skip'; Detail = 'skipped' }
[pscustomobject]@{ Label = 'Pack Orion.2.0.0.nupkg'; Status = 'Running' }
[pscustomobject]@{ Label = 'Publish to PowerShell Gallery'; Status = 'Pending' }
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleStatusList -Content {
[pscustomobject]@{ Label = 'Restore NuGet packages'; Status = 'Pass'; Detail = '1.6 s' }
[pscustomobject]@{ Label = 'Compile Orion'; Status = 'Pass'; Detail = '4.7 s' }
[pscustomobject]@{ Label = 'Run Pester on PowerShell 7'; Status = 'Warn'; Detail = '1 skipped' }
[pscustomobject]@{ Label = 'Sign module files'; Status = 'Skip'; Detail = 'skipped' }
[pscustomobject]@{ Label = 'Pack Orion.2.0.0.nupkg'; Status = 'Running' }
[pscustomobject]@{ Label = 'Publish to PowerShell Gallery'; Status = 'Pending' }
} | Show-ConsoleTerminal.Write(new StatusList()
.Add("Restore NuGet packages", StatusKind.Pass, "1.6 s")
.Add("Compile Orion", StatusKind.Pass, "4.7 s")
.Add("Run Pester on PowerShell 7", StatusKind.Warn, "1 skipped")
.Add("Sign module files", StatusKind.Skip, "skipped")
.Add("Pack Orion.2.0.0.nupkg", StatusKind.Running)
.Add("Publish to PowerShell Gallery", StatusKind.Pending));Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Terminal.Write(new StatusList()
.Add("Restore NuGet packages", StatusKind.Pass, "1.6 s")
.Add("Compile Orion", StatusKind.Pass, "4.7 s")
.Add("Run Pester on PowerShell 7", StatusKind.Warn, "1 skipped")
.Add("Sign module files", StatusKind.Skip, "skipped")
.Add("Pack Orion.2.0.0.nupkg", StatusKind.Running)
.Add("Publish to PowerShell Gallery", StatusKind.Pending));Ui.StatusList()
.Add("Restore NuGet packages", StatusKind.Pass, "1.6 s")
.Add("Compile Orion", StatusKind.Pass, "4.7 s")
.Add("Run Pester on PowerShell 7", StatusKind.Warn, "1 skipped")
.Add("Sign module files", StatusKind.Skip, "skipped")
.Add("Pack Orion.2.0.0.nupkg", StatusKind.Running)
.Add("Publish to PowerShell Gallery", StatusKind.Pending)
.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
Ui.StatusList()
.Add("Restore NuGet packages", StatusKind.Pass, "1.6 s")
.Add("Compile Orion", StatusKind.Pass, "4.7 s")
.Add("Run Pester on PowerShell 7", StatusKind.Warn, "1 skipped")
.Add("Sign module files", StatusKind.Skip, "skipped")
.Add("Pack Orion.2.0.0.nupkg", StatusKind.Running)
.Add("Publish to PowerShell Gallery", StatusKind.Pending)
.Show();
Tree
60 × 8Nested items with guides, status symbols and notes.
evotec.xyz ├── ✓ MX 2 records │ └── evotec-xyz.mail.protection.outlook.com priority 0 ├── ▲ SPF 9 of 10 DNS lookups │ ├── include:spf.protection.outlook.com │ └── include:_spf.salesforce.com ├── ✗ DMARC p=none └── ✓ DKIM selector1, selector2
evotec.xyz ├── ✓ MX 2 records │ └── evotec-xyz.mail.protection.outlook.com priority 0 ├── ▲ SPF 9 of 10 DNS lookups │ ├── include:spf.protection.outlook.com │ └── include:_spf.salesforce.com ├── ✗ DMARC p=none └── ✓ DKIM selector1, selector2
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleTree '[bold]evotec.xyz[/]' -Content {
[pscustomobject]@{ Label = 'MX'; Status = 'Pass'; Detail = '2 records'; Children = @(& {
[pscustomobject]@{ Label = 'evotec-xyz.mail.protection.outlook.com'; Detail = 'priority 0' }
}) }
[pscustomobject]@{ Label = 'SPF'; Status = 'Warn'; Detail = '9 of 10 DNS lookups'
Children = @(& {
'include:spf.protection.outlook.com'
'include:_spf.salesforce.com'
}) }
[pscustomobject]@{ Label = 'DMARC'; Status = 'Fail'; Detail = 'p=none' }
[pscustomobject]@{ Label = 'DKIM'; Status = 'Pass'; Detail = 'selector1, selector2' }
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleTree '[bold]evotec.xyz[/]' -Content {
[pscustomobject]@{ Label = 'MX'; Status = 'Pass'; Detail = '2 records'; Children = @(& {
[pscustomobject]@{ Label = 'evotec-xyz.mail.protection.outlook.com'; Detail = 'priority 0' }
}) }
[pscustomobject]@{ Label = 'SPF'; Status = 'Warn'; Detail = '9 of 10 DNS lookups'
Children = @(& {
'include:spf.protection.outlook.com'
'include:_spf.salesforce.com'
}) }
[pscustomobject]@{ Label = 'DMARC'; Status = 'Fail'; Detail = 'p=none' }
[pscustomobject]@{ Label = 'DKIM'; Status = 'Pass'; Detail = 'selector1, selector2' }
} | Show-ConsoleTree tree = new Tree("[bold]evotec.xyz[/]");
TreeNode mx = tree.Add("MX", StatusKind.Pass, "2 records");
mx.Add("evotec-xyz.mail.protection.outlook.com", default, "priority 0");
TreeNode spf = tree.Add("SPF", StatusKind.Warn, "9 of 10 DNS lookups");
spf.Add("include:spf.protection.outlook.com");
spf.Add("include:_spf.salesforce.com");
tree.Add("DMARC", StatusKind.Fail, "p=none");
tree.Add("DKIM", StatusKind.Pass, "selector1, selector2");
Terminal.Write(tree);Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Tree tree = new Tree("[bold]evotec.xyz[/]");
TreeNode mx = tree.Add("MX", StatusKind.Pass, "2 records");
mx.Add("evotec-xyz.mail.protection.outlook.com", default, "priority 0");
TreeNode spf = tree.Add("SPF", StatusKind.Warn, "9 of 10 DNS lookups");
spf.Add("include:spf.protection.outlook.com");
spf.Add("include:_spf.salesforce.com");
tree.Add("DMARC", StatusKind.Fail, "p=none");
tree.Add("DKIM", StatusKind.Pass, "selector1, selector2");
Terminal.Write(tree);Tree tree = Ui.Tree().Title("[bold]evotec.xyz[/]");
TreeNode mx = tree.Add("MX", StatusKind.Pass, "2 records");
mx.Add("evotec-xyz.mail.protection.outlook.com", default, "priority 0");
TreeNode spf = tree.Add("SPF", StatusKind.Warn, "9 of 10 DNS lookups");
spf.Add("include:spf.protection.outlook.com");
spf.Add("include:_spf.salesforce.com");
tree.Add("DMARC", StatusKind.Fail, "p=none");
tree.Add("DKIM", StatusKind.Pass, "selector1, selector2");
tree.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Tree tree = Ui.Tree().Title("[bold]evotec.xyz[/]");
TreeNode mx = tree.Add("MX", StatusKind.Pass, "2 records");
mx.Add("evotec-xyz.mail.protection.outlook.com", default, "priority 0");
TreeNode spf = tree.Add("SPF", StatusKind.Warn, "9 of 10 DNS lookups");
spf.Add("include:spf.protection.outlook.com");
spf.Add("include:_spf.salesforce.com");
tree.Add("DMARC", StatusKind.Fail, "p=none");
tree.Add("DKIM", StatusKind.Pass, "selector1, selector2");
tree.Show();
Progress
60 × 4Labelled bars with a percentage and a count, in line or block shape.
Build ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━───────────────── 64% Tests ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━────────── 412/530 Docs ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% Upload ▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆ 3/8
Build ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━───────────────── 64% Tests ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━────────── 412/530 Docs ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% Upload ▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆ 3/8
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleRows -Content {
New-ConsoleProgress -Label 'Build' -Value 64 -Total 100
New-ConsoleProgress -Label 'Tests' -Value 412 -Total 530
New-ConsoleProgress -Label 'Docs' -Value 100 -Total 100 -Status Pass
New-ConsoleProgress -Label 'Upload' -Value 3 -Total 8 -Shape Block
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleRows -Content {
New-ConsoleProgress -Label 'Build' -Value 64 -Total 100
New-ConsoleProgress -Label 'Tests' -Value 412 -Total 530
New-ConsoleProgress -Label 'Docs' -Value 100 -Total 100 -Status Pass
New-ConsoleProgress -Label 'Upload' -Value 3 -Total 8 -Shape Block
} | Show-ConsoleTerminal.Write(new Rows()
.Add(new ProgressBar("Build") { Value = 64, Total = 100 })
.Add(new ProgressBar("Tests") { Value = 412, Total = 530 })
.Add(new ProgressBar("Docs") { Value = 100, Total = 100, Status = StatusKind.Pass })
.Add(new ProgressBar("Upload") { Value = 3, Total = 8, Shape = BarShape.Block }));Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Terminal.Write(new Rows()
.Add(new ProgressBar("Build") { Value = 64, Total = 100 })
.Add(new ProgressBar("Tests") { Value = 412, Total = 530 })
.Add(new ProgressBar("Docs") { Value = 100, Total = 100, Status = StatusKind.Pass })
.Add(new ProgressBar("Upload") { Value = 3, Total = 8, Shape = BarShape.Block }));Ui.Rows()
.Add(Ui.ProgressBar().Label("Build").Value(64).Total(100))
.Add(Ui.ProgressBar().Label("Tests").Value(412).Total(530))
.Add(Ui.ProgressBar().Label("Docs").Value(100).Total(100).Status(StatusKind.Pass))
.Add(Ui.ProgressBar().Label("Upload").Value(3).Total(8).Shape(BarShape.Block))
.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Ui.Rows()
.Add(Ui.ProgressBar().Label("Build").Value(64).Total(100))
.Add(Ui.ProgressBar().Label("Tests").Value(412).Total(530))
.Add(Ui.ProgressBar().Label("Docs").Value(100).Total(100).Status(StatusKind.Pass))
.Add(Ui.ProgressBar().Label("Upload").Value(3).Total(8).Shape(BarShape.Block))
.Show();
Phases
60 × 1A pipeline of stages: done, running and waiting.
✓ Discover 2.1s › ✓ Collect 14s › ⠋ Evaluate 64% › ○ Report
✓ Discover 2.1s › ✓ Collect 14s › ⠋ Evaluate 64% › ○ Report
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleStatusList -Layout Strip -WidgetId phases -Content {
[pscustomobject]@{ Label = 'Discover'; Status = 'Pass'; Detail = '2.1s' }
[pscustomobject]@{ Label = 'Collect'; Status = 'Pass'; Detail = '14s' }
[pscustomobject]@{ Label = 'Evaluate'; Status = 'Running'; Detail = '64%' }
[pscustomobject]@{ Label = 'Report' }
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleStatusList -Layout Strip -WidgetId phases -Content {
[pscustomobject]@{ Label = 'Discover'; Status = 'Pass'; Detail = '2.1s' }
[pscustomobject]@{ Label = 'Collect'; Status = 'Pass'; Detail = '14s' }
[pscustomobject]@{ Label = 'Evaluate'; Status = 'Running'; Detail = '64%' }
[pscustomobject]@{ Label = 'Report' }
} | Show-ConsoleTerminal.Write(new Phases()
.Set("Discover", StatusKind.Pass, default, "2.1s")
.Set("Collect", StatusKind.Pass, default, "14s")
.Set("Evaluate", StatusKind.Running, default, "64%")
.Set("Report", StatusKind.Pending));Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Terminal.Write(new Phases()
.Set("Discover", StatusKind.Pass, default, "2.1s")
.Set("Collect", StatusKind.Pass, default, "14s")
.Set("Evaluate", StatusKind.Running, default, "64%")
.Set("Report", StatusKind.Pending));Ui.Phases()
.Set("Discover", StatusKind.Pass, default, "2.1s")
.Set("Collect", StatusKind.Pass, default, "14s")
.Set("Evaluate", StatusKind.Running, default, "64%")
.Set("Report", StatusKind.Pending)
.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
Ui.Phases()
.Set("Discover", StatusKind.Pass, default, "2.1s")
.Set("Collect", StatusKind.Pass, default, "14s")
.Set("Evaluate", StatusKind.Running, default, "64%")
.Set("Report", StatusKind.Pending)
.Show();
Pipeline fan-out
72 × 6The running stage fans out to its items; failures stay visible and the rest fold into +N more.
✓ Discover 2.1s › ✓ Snapshot 12s › ⠋ Migrate 6/12 › ○ Verify › ○ Report ├── ✓ alice 1.1s ├── ✓ bob 1.5s ├── ● erin 40% ├── ✗ frank access denied └── +8 more · ✓ 2 · ○ 6
✓ Discover 2.1s › ✓ Snapshot 12s › ⠋ Migrate 6/12 › ○ Verify › ○ Report ├── ✓ alice 1.1s ├── ✓ bob 1.5s ├── ● erin 40% ├── ✗ frank access denied └── +8 more · ✓ 2 · ○ 6
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleStatusList -Layout Strip -WidgetId migration -Content {
@{ Key = 'Discover'; Status = 'Pass'; Detail = '2.1s' }
@{ Key = 'Snapshot'; Status = 'Pass'; Detail = '12s' }
@{ Key = 'Migrate'; Status = 'Running'; Detail = '6/12' }
'Verify', 'Report'
# Items of the running phase: failed and running ones stay visible, the rest fold into +N more.
@{ ParentKey = 'Migrate'; Key = 'alice'; Status = 'Pass'; Detail = '1.1s' }
@{ ParentKey = 'Migrate'; Key = 'bob'; Status = 'Pass'; Detail = '1.5s' }
@{ ParentKey = 'Migrate'; Key = 'carol'; Status = 'Pass'; Detail = '1.9s' }
@{ ParentKey = 'Migrate'; Key = 'dave'; Status = 'Pass'; Detail = '2.3s' }
@{ ParentKey = 'Migrate'; Key = 'erin'; Status = 'Running'; Detail = '40%' }
@{ ParentKey = 'Migrate'; Key = 'frank'; Status = 'Fail'; Detail = 'access denied' }
'grace', 'heidi', 'ivan', 'judy', 'mallory', 'niaj' |
ForEach-Object { @{ ParentKey = 'Migrate'; Key = $_ } }
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleStatusList -Layout Strip -WidgetId migration -Content {
@{ Key = 'Discover'; Status = 'Pass'; Detail = '2.1s' }
@{ Key = 'Snapshot'; Status = 'Pass'; Detail = '12s' }
@{ Key = 'Migrate'; Status = 'Running'; Detail = '6/12' }
'Verify', 'Report'
# Items of the running phase: failed and running ones stay visible, the rest fold into +N more.
@{ ParentKey = 'Migrate'; Key = 'alice'; Status = 'Pass'; Detail = '1.1s' }
@{ ParentKey = 'Migrate'; Key = 'bob'; Status = 'Pass'; Detail = '1.5s' }
@{ ParentKey = 'Migrate'; Key = 'carol'; Status = 'Pass'; Detail = '1.9s' }
@{ ParentKey = 'Migrate'; Key = 'dave'; Status = 'Pass'; Detail = '2.3s' }
@{ ParentKey = 'Migrate'; Key = 'erin'; Status = 'Running'; Detail = '40%' }
@{ ParentKey = 'Migrate'; Key = 'frank'; Status = 'Fail'; Detail = 'access denied' }
'grace', 'heidi', 'ivan', 'judy', 'mallory', 'niaj' |
ForEach-Object { @{ ParentKey = 'Migrate'; Key = $_ } }
} | Show-ConsolePhases migration = new Phases()
.Set("Discover", StatusKind.Pass, default, "2.1s")
.Set("Snapshot", StatusKind.Pass, default, "12s")
.Set("Migrate", StatusKind.Running, default, "6/12")
.Set("Verify")
.Set("Report");
// The running phase fans out to its items: failed and running ones stay visible, the rest fold into +N more.
migration.Item("Migrate", "alice", StatusKind.Pass, default, "1.1s");
migration.Item("Migrate", "bob", StatusKind.Pass, default, "1.5s");
migration.Item("Migrate", "carol", StatusKind.Pass, default, "1.9s");
migration.Item("Migrate", "dave", StatusKind.Pass, default, "2.3s");
migration.Item("Migrate", "erin", StatusKind.Running, default, "40%");
migration.Item("Migrate", "frank", StatusKind.Fail, default, "access denied");
migration.Item("Migrate", "grace");
migration.Item("Migrate", "heidi");
migration.Item("Migrate", "ivan");
migration.Item("Migrate", "judy");
migration.Item("Migrate", "mallory");
migration.Item("Migrate", "niaj");
Terminal.Write(migration);Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Phases migration = new Phases()
.Set("Discover", StatusKind.Pass, default, "2.1s")
.Set("Snapshot", StatusKind.Pass, default, "12s")
.Set("Migrate", StatusKind.Running, default, "6/12")
.Set("Verify")
.Set("Report");
// The running phase fans out to its items: failed and running ones stay visible, the rest fold into +N more.
migration.Item("Migrate", "alice", StatusKind.Pass, default, "1.1s");
migration.Item("Migrate", "bob", StatusKind.Pass, default, "1.5s");
migration.Item("Migrate", "carol", StatusKind.Pass, default, "1.9s");
migration.Item("Migrate", "dave", StatusKind.Pass, default, "2.3s");
migration.Item("Migrate", "erin", StatusKind.Running, default, "40%");
migration.Item("Migrate", "frank", StatusKind.Fail, default, "access denied");
migration.Item("Migrate", "grace");
migration.Item("Migrate", "heidi");
migration.Item("Migrate", "ivan");
migration.Item("Migrate", "judy");
migration.Item("Migrate", "mallory");
migration.Item("Migrate", "niaj");
Terminal.Write(migration);Phases migration = Ui.Phases()
.Set("Discover", StatusKind.Pass, default, "2.1s")
.Set("Snapshot", StatusKind.Pass, default, "12s")
.Set("Migrate", StatusKind.Running, default, "6/12")
.Set("Verify")
.Set("Report");
// The running phase fans out to its items: failed and running ones stay visible, the rest fold into +N more.
migration.Item("Migrate", "alice", StatusKind.Pass, default, "1.1s");
migration.Item("Migrate", "bob", StatusKind.Pass, default, "1.5s");
migration.Item("Migrate", "carol", StatusKind.Pass, default, "1.9s");
migration.Item("Migrate", "dave", StatusKind.Pass, default, "2.3s");
migration.Item("Migrate", "erin", StatusKind.Running, default, "40%");
migration.Item("Migrate", "frank", StatusKind.Fail, default, "access denied");
migration.Item("Migrate", "grace");
migration.Item("Migrate", "heidi");
migration.Item("Migrate", "ivan");
migration.Item("Migrate", "judy");
migration.Item("Migrate", "mallory");
migration.Item("Migrate", "niaj");
migration.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Phases migration = Ui.Phases()
.Set("Discover", StatusKind.Pass, default, "2.1s")
.Set("Snapshot", StatusKind.Pass, default, "12s")
.Set("Migrate", StatusKind.Running, default, "6/12")
.Set("Verify")
.Set("Report");
// The running phase fans out to its items: failed and running ones stay visible, the rest fold into +N more.
migration.Item("Migrate", "alice", StatusKind.Pass, default, "1.1s");
migration.Item("Migrate", "bob", StatusKind.Pass, default, "1.5s");
migration.Item("Migrate", "carol", StatusKind.Pass, default, "1.9s");
migration.Item("Migrate", "dave", StatusKind.Pass, default, "2.3s");
migration.Item("Migrate", "erin", StatusKind.Running, default, "40%");
migration.Item("Migrate", "frank", StatusKind.Fail, default, "access denied");
migration.Item("Migrate", "grace");
migration.Item("Migrate", "heidi");
migration.Item("Migrate", "ivan");
migration.Item("Migrate", "judy");
migration.Item("Migrate", "mallory");
migration.Item("Migrate", "niaj");
migration.Show();
Pipeline chain
60 × 7Stages on one line in a table cell, folding around the current stage to fit the column.
╭─────────────────┬────────────────────────────────────────╮ │ Repository │ Stages │ ├─────────────────┼────────────────────────────────────────┤ │ ConsoleMonster │ ✓ +2 earlier › ⠋ Test › ○ +2 more │ │ PSPublishModule │ ✓ Fetch › ✗ Build › ○ +3 more │ │ DnsClientX │ ✓ +4 earlier › ✓ Publish │ ╰─────────────────┴────────────────────────────────────────╯
╭─────────────────┬────────────────────────────────────────╮ │ Repository │ Stages │ ├─────────────────┼────────────────────────────────────────┤ │ ConsoleMonster │ ✓ +2 earlier › ⠋ Test › ○ +2 more │ │ PSPublishModule │ ✓ Fetch › ✗ Build › ○ +3 more │ │ DnsClientX │ ✓ +4 earlier › ✓ Publish │ ╰─────────────────┴────────────────────────────────────────╯
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
# One line per pipeline that folds to fit its column: neighbours of the current stage become +N earlier and +N more.
$stageNames = 'Fetch', 'Build', 'Test', 'Pack', 'Publish'
$runs = @(
@{ Repository = 'ConsoleMonster'; Status = 'Pass', 'Pass', 'Running', 'Pending', 'Pending' }
@{ Repository = 'PSPublishModule'; Status = 'Pass', 'Fail', 'Pending', 'Pending', 'Pending' }
@{ Repository = 'DnsClientX'; Status = 'Pass', 'Pass', 'Pass', 'Pass', 'Pass' }
)
$runs | ForEach-Object {
$run = $_
[pscustomobject]@{
Repository = $run.Repository
Stages = New-ConsoleStatusList -Layout Chain -Content {
for ($i = 0; $i -lt $stageNames.Count; $i++) {
@{ Key = $stageNames[$i]; Status = $run.Status[$i] }
}
}
}
} | Show-ConsoleTableFull program
Import-Module ConsoleMonster
# One line per pipeline that folds to fit its column: neighbours of the current stage become +N earlier and +N more.
$stageNames = 'Fetch', 'Build', 'Test', 'Pack', 'Publish'
$runs = @(
@{ Repository = 'ConsoleMonster'; Status = 'Pass', 'Pass', 'Running', 'Pending', 'Pending' }
@{ Repository = 'PSPublishModule'; Status = 'Pass', 'Fail', 'Pending', 'Pending', 'Pending' }
@{ Repository = 'DnsClientX'; Status = 'Pass', 'Pass', 'Pass', 'Pass', 'Pass' }
)
$runs | ForEach-Object {
$run = $_
[pscustomobject]@{
Repository = $run.Repository
Stages = New-ConsoleStatusList -Layout Chain -Content {
for ($i = 0; $i -lt $stageNames.Count; $i++) {
@{ Key = $stageNames[$i]; Status = $run.Status[$i] }
}
}
}
} | Show-ConsoleTable// One line per pipeline that folds to fit its column: neighbours of the current stage become +N earlier and +N more.
static Phases Stages(params StatusKind[] status)
{
Phases stages = new Phases { Compact = true };
string[] names = { "Fetch", "Build", "Test", "Pack", "Publish" };
for (int i = 0; i < names.Length; i++)
{
stages.Set(names[i], status[i]);
}
return stages;
}
Table table = new Table().Column("Repository").Column("Stages");
table.Values("ConsoleMonster",
Stages(StatusKind.Pass, StatusKind.Pass, StatusKind.Running, StatusKind.Pending,
StatusKind.Pending));
table.Values("PSPublishModule",
Stages(StatusKind.Pass, StatusKind.Fail, StatusKind.Pending, StatusKind.Pending,
StatusKind.Pending));
table.Values("DnsClientX",
Stages(StatusKind.Pass, StatusKind.Pass, StatusKind.Pass, StatusKind.Pass, StatusKind.Pass));
Terminal.Write(table);Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// One line per pipeline that folds to fit its column: neighbours of the current stage become +N earlier and +N more.
static Phases Stages(params StatusKind[] status)
{
Phases stages = new Phases { Compact = true };
string[] names = { "Fetch", "Build", "Test", "Pack", "Publish" };
for (int i = 0; i < names.Length; i++)
{
stages.Set(names[i], status[i]);
}
return stages;
}
Table table = new Table().Column("Repository").Column("Stages");
table.Values("ConsoleMonster",
Stages(StatusKind.Pass, StatusKind.Pass, StatusKind.Running, StatusKind.Pending,
StatusKind.Pending));
table.Values("PSPublishModule",
Stages(StatusKind.Pass, StatusKind.Fail, StatusKind.Pending, StatusKind.Pending,
StatusKind.Pending));
table.Values("DnsClientX",
Stages(StatusKind.Pass, StatusKind.Pass, StatusKind.Pass, StatusKind.Pass, StatusKind.Pass));
Terminal.Write(table);// One line per pipeline that folds to fit its column: neighbours of the current stage become +N earlier and +N more.
static Phases Stages(params StatusKind[] status)
{
Phases stages = Ui.Phases().Compact();
string[] names = { "Fetch", "Build", "Test", "Pack", "Publish" };
for (int i = 0; i < names.Length; i++)
{
stages.Set(names[i], status[i]);
}
return stages;
}
Table table = Ui.Table().Column("Repository").Column("Stages");
table.Values("ConsoleMonster",
Stages(StatusKind.Pass, StatusKind.Pass, StatusKind.Running, StatusKind.Pending,
StatusKind.Pending));
table.Values("PSPublishModule",
Stages(StatusKind.Pass, StatusKind.Fail, StatusKind.Pending, StatusKind.Pending,
StatusKind.Pending));
table.Values("DnsClientX",
Stages(StatusKind.Pass, StatusKind.Pass, StatusKind.Pass, StatusKind.Pass, StatusKind.Pass));
table.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// One line per pipeline that folds to fit its column: neighbours of the current stage become +N earlier and +N more.
static Phases Stages(params StatusKind[] status)
{
Phases stages = Ui.Phases().Compact();
string[] names = { "Fetch", "Build", "Test", "Pack", "Publish" };
for (int i = 0; i < names.Length; i++)
{
stages.Set(names[i], status[i]);
}
return stages;
}
Table table = Ui.Table().Column("Repository").Column("Stages");
table.Values("ConsoleMonster",
Stages(StatusKind.Pass, StatusKind.Pass, StatusKind.Running, StatusKind.Pending,
StatusKind.Pending));
table.Values("PSPublishModule",
Stages(StatusKind.Pass, StatusKind.Fail, StatusKind.Pending, StatusKind.Pending,
StatusKind.Pending));
table.Values("DnsClientX",
Stages(StatusKind.Pass, StatusKind.Pass, StatusKind.Pass, StatusKind.Pass, StatusKind.Pass));
table.Show();
Spinner
60 × 3An activity with a detail, or its final state once it has finished.
⠋ Resolving DNS records zone 4 of 9 ✓ Schema snapshot cached ✗ Certificate chain expired 3 days ago
⠋ Resolving DNS records zone 4 of 9 ✓ Schema snapshot cached ✗ Certificate chain expired 3 days ago
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleRows -Content {
$progressParameters = @{
Label = 'Resolving DNS records'
Detail = 'zone 4 of 9'
Indeterminate = $true
WidgetId = 'spinner'
}
New-ConsoleProgress @progressParameters
$progressParameters = @{
Label = 'Schema snapshot'
Detail = 'cached'
Status = 'Pass'
Indeterminate = $true
WidgetId = 'spinner'
}
New-ConsoleProgress @progressParameters
$progressParameters = @{
Label = 'Certificate chain'
Detail = 'expired 3 days ago'
Status = 'Fail'
Indeterminate = $true
WidgetId = 'spinner'
}
New-ConsoleProgress @progressParameters
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleRows -Content {
$progressParameters = @{
Label = 'Resolving DNS records'
Detail = 'zone 4 of 9'
Indeterminate = $true
WidgetId = 'spinner'
}
New-ConsoleProgress @progressParameters
$progressParameters = @{
Label = 'Schema snapshot'
Detail = 'cached'
Status = 'Pass'
Indeterminate = $true
WidgetId = 'spinner'
}
New-ConsoleProgress @progressParameters
$progressParameters = @{
Label = 'Certificate chain'
Detail = 'expired 3 days ago'
Status = 'Fail'
Indeterminate = $true
WidgetId = 'spinner'
}
New-ConsoleProgress @progressParameters
} | Show-ConsoleTerminal.Write(new Rows()
.Add(new Spinner("Resolving DNS records") { Detail = "zone 4 of 9" })
.Add(new Spinner("Schema snapshot") { Status = StatusKind.Pass, Detail = "cached" })
.Add(new Spinner("Certificate chain")
{
Status = StatusKind.Fail,
Detail = "expired 3 days ago"
}));Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Terminal.Write(new Rows()
.Add(new Spinner("Resolving DNS records") { Detail = "zone 4 of 9" })
.Add(new Spinner("Schema snapshot") { Status = StatusKind.Pass, Detail = "cached" })
.Add(new Spinner("Certificate chain")
{
Status = StatusKind.Fail,
Detail = "expired 3 days ago"
}));Ui.Rows()
.Add(Ui.Spinner().Label("Resolving DNS records").Detail("zone 4 of 9"))
.Add(Ui.Spinner().Label("Schema snapshot").Status(StatusKind.Pass).Detail("cached"))
.Add(Ui.Spinner()
.Label("Certificate chain")
.Status(StatusKind.Fail)
.Detail("expired 3 days ago"))
.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Ui.Rows()
.Add(Ui.Spinner().Label("Resolving DNS records").Detail("zone 4 of 9"))
.Add(Ui.Spinner().Label("Schema snapshot").Status(StatusKind.Pass).Detail("cached"))
.Add(Ui.Spinner()
.Label("Certificate chain")
.Status(StatusKind.Fail)
.Detail("expired 3 days ago"))
.Show();
Log region
60 × 5Timed log lines with levels; in a live session it collects Console and PowerShell output.
00:02 Discovered 4 domain controllers in 2 domains 00:31 ▲ WARN DC02: replication partner DC05 last success 3h… 00:44 ✗ ERR DC02: USN rollback check failed (event 2095) 00:52 Collected 186 rule inputs from DC01 00:53 VERB Using cached schema snapshot
00:02 Discovered 4 domain controllers in 2 domains 00:31 ▲ WARN DC02: replication partner DC05 last success 3h… 00:44 ✗ ERR DC02: USN rollback check failed (event 2095) 00:52 Collected 186 rule inputs from DC01 00:53 VERB Using cached schema snapshot
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleLogRegion -Height 5 -Content {
[pscustomobject]@{ Message = 'Discovered 4 domain controllers in 2 domains'; Level = 'Info'
AtSeconds = 2 }
[pscustomobject]@{ Message = 'DC02: replication partner DC05 last success 3h ago'
Level = 'Warning'; AtSeconds = 31 }
[pscustomobject]@{ Message = 'DC02: USN rollback check failed (event 2095)'; Level = 'Error'
AtSeconds = 44 }
[pscustomobject]@{ Message = 'Collected 186 rule inputs from DC01'; Level = 'Info'
AtSeconds = 52 }
[pscustomobject]@{ Message = 'Using cached schema snapshot'; Level = 'Verbose'; AtSeconds = 53 }
} | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleLogRegion -Height 5 -Content {
[pscustomobject]@{ Message = 'Discovered 4 domain controllers in 2 domains'; Level = 'Info'
AtSeconds = 2 }
[pscustomobject]@{ Message = 'DC02: replication partner DC05 last success 3h ago'
Level = 'Warning'; AtSeconds = 31 }
[pscustomobject]@{ Message = 'DC02: USN rollback check failed (event 2095)'; Level = 'Error'
AtSeconds = 44 }
[pscustomobject]@{ Message = 'Collected 186 rule inputs from DC01'; Level = 'Info'
AtSeconds = 52 }
[pscustomobject]@{ Message = 'Using cached schema snapshot'; Level = 'Verbose'; AtSeconds = 53 }
} | Show-ConsoleLogRegion log = new LogRegion()
{
PreferredHeight = 5
};
log.Write("Discovered 4 domain controllers in 2 domains", "info", TimeSpan.FromSeconds(2));
log.Write("DC02: replication partner DC05 last success 3h ago", "warn", TimeSpan.FromSeconds(31));
log.Write("DC02: USN rollback check failed (event 2095)", "err", TimeSpan.FromSeconds(44));
log.Write("Collected 186 rule inputs from DC01", "info", TimeSpan.FromSeconds(52));
log.Write("Using cached schema snapshot", "verbose", TimeSpan.FromSeconds(53));
Terminal.Write(log);Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
LogRegion log = new LogRegion()
{
PreferredHeight = 5
};
log.Write("Discovered 4 domain controllers in 2 domains", "info", TimeSpan.FromSeconds(2));
log.Write("DC02: replication partner DC05 last success 3h ago", "warn", TimeSpan.FromSeconds(31));
log.Write("DC02: USN rollback check failed (event 2095)", "err", TimeSpan.FromSeconds(44));
log.Write("Collected 186 rule inputs from DC01", "info", TimeSpan.FromSeconds(52));
log.Write("Using cached schema snapshot", "verbose", TimeSpan.FromSeconds(53));
Terminal.Write(log);LogRegion log = Ui.LogRegion().PreferredHeight(5);
log.Write("Discovered 4 domain controllers in 2 domains", "info", TimeSpan.FromSeconds(2));
log.Write("DC02: replication partner DC05 last success 3h ago", "warn", TimeSpan.FromSeconds(31));
log.Write("DC02: USN rollback check failed (event 2095)", "err", TimeSpan.FromSeconds(44));
log.Write("Collected 186 rule inputs from DC01", "info", TimeSpan.FromSeconds(52));
log.Write("Using cached schema snapshot", "verbose", TimeSpan.FromSeconds(53));
log.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
LogRegion log = Ui.LogRegion().PreferredHeight(5);
log.Write("Discovered 4 domain controllers in 2 domains", "info", TimeSpan.FromSeconds(2));
log.Write("DC02: replication partner DC05 last success 3h ago", "warn", TimeSpan.FromSeconds(31));
log.Write("DC02: USN rollback check failed (event 2095)", "err", TimeSpan.FromSeconds(44));
log.Write("Collected 186 rule inputs from DC01", "info", TimeSpan.FromSeconds(52));
log.Write("Using cached schema snapshot", "verbose", TimeSpan.FromSeconds(53));
log.Show();
Tagged log
72 × 3Lines from named sources, each in its own colour, filtered to warnings and worse.
▲ WARN migrate Mailbox for frank is over quota (51 GB) ✗ ERR migrate frank: access denied on the target database ▲ WARN exchange-online Throttling: 3 requests delayed
▲ WARN migrate Mailbox for frank is over quota (51 GB) ✗ ERR migrate frank: access denied on the target database ▲ WARN exchange-online Throttling: 3 requests delayed
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
# Each source keeps one colour; -Level shows warnings and worse, and hidden lines stay in the history.
New-ConsoleLogRegion -Height 5 -NoElapsed -Level Warn -Content {
@{ Message = 'Snapshot of 12 mailboxes taken'; Tag = 'snapshot' }
@{ Message = 'Mailbox for frank is over quota (51 GB)'; Level = 'Warn'; Tag = 'migrate' }
@{ Message = 'alice moved in 1.1s'; Tag = 'migrate' }
@{ Message = 'frank: access denied on the target database'; Level = 'Error'; Tag = 'migrate' }
@{ Message = 'Throttling: 3 requests delayed'; Level = 'Warn'; Tag = 'exchange-online' }
} | Show-ConsoleFull program
Import-Module ConsoleMonster
# Each source keeps one colour; -Level shows warnings and worse, and hidden lines stay in the history.
New-ConsoleLogRegion -Height 5 -NoElapsed -Level Warn -Content {
@{ Message = 'Snapshot of 12 mailboxes taken'; Tag = 'snapshot' }
@{ Message = 'Mailbox for frank is over quota (51 GB)'; Level = 'Warn'; Tag = 'migrate' }
@{ Message = 'alice moved in 1.1s'; Tag = 'migrate' }
@{ Message = 'frank: access denied on the target database'; Level = 'Error'; Tag = 'migrate' }
@{ Message = 'Throttling: 3 requests delayed'; Level = 'Warn'; Tag = 'exchange-online' }
} | Show-Console// Each source keeps one colour; the filter shows warnings and worse, and hidden lines stay in the history.
LogRegion log = new LogRegion()
{
PreferredHeight = 5,
ShowElapsed = false,
Filter = new LogFilter(null, "warn")
};
log.Write(new LogEntry(TimeSpan.Zero, "info", "Snapshot of 12 mailboxes taken", null, "snapshot"));
log.Write(new LogEntry(TimeSpan.Zero, "warn", "Mailbox for frank is over quota (51 GB)", null,
"migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "info", "alice moved in 1.1s", null, "migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "err", "frank: access denied on the target database", null,
"migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "warn", "Throttling: 3 requests delayed", null,
"exchange-online"));
Terminal.Write(log);Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
// Each source keeps one colour; the filter shows warnings and worse, and hidden lines stay in the history.
LogRegion log = new LogRegion()
{
PreferredHeight = 5,
ShowElapsed = false,
Filter = new LogFilter(null, "warn")
};
log.Write(new LogEntry(TimeSpan.Zero, "info", "Snapshot of 12 mailboxes taken", null, "snapshot"));
log.Write(new LogEntry(TimeSpan.Zero, "warn", "Mailbox for frank is over quota (51 GB)", null,
"migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "info", "alice moved in 1.1s", null, "migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "err", "frank: access denied on the target database", null,
"migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "warn", "Throttling: 3 requests delayed", null,
"exchange-online"));
Terminal.Write(log);// Each source keeps one colour; the filter shows warnings and worse, and hidden lines stay in the history.
LogRegion log = Ui.LogRegion()
.PreferredHeight(5)
.ShowElapsed(false)
.Filter(new LogFilter(null, "warn"));
log.Write(new LogEntry(TimeSpan.Zero, "info", "Snapshot of 12 mailboxes taken", null, "snapshot"));
log.Write(new LogEntry(TimeSpan.Zero, "warn", "Mailbox for frank is over quota (51 GB)", null,
"migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "info", "alice moved in 1.1s", null, "migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "err", "frank: access denied on the target database", null,
"migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "warn", "Throttling: 3 requests delayed", null,
"exchange-online"));
log.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
// Each source keeps one colour; the filter shows warnings and worse, and hidden lines stay in the history.
LogRegion log = Ui.LogRegion()
.PreferredHeight(5)
.ShowElapsed(false)
.Filter(new LogFilter(null, "warn"));
log.Write(new LogEntry(TimeSpan.Zero, "info", "Snapshot of 12 mailboxes taken", null, "snapshot"));
log.Write(new LogEntry(TimeSpan.Zero, "warn", "Mailbox for frank is over quota (51 GB)", null,
"migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "info", "alice moved in 1.1s", null, "migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "err", "frank: access denied on the target database", null,
"migrate"));
log.Write(new LogEntry(TimeSpan.Zero, "warn", "Throttling: 3 requests delayed", null,
"exchange-online"));
log.Show();
Charts
Bars, stacked bars, sparklines, histograms and braille line and scatter charts, all scaled to their cells.
Bar chart
60 × 5Labelled bars scaled to the largest value, with the values on the right.
Domain controllers ▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆ ✗ 14 Group Policy ▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆ ✗ 9 Kerberos ▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆ ✗ 6 DNS ▆▆▆▆▆▆▆▆▆▆ ✗ 4 PKI ▆▆▆▆▆ ✗ 2
Domain controllers ▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆ ✗ 14 Group Policy ▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆ ✗ 9 Kerberos ▆▆▆▆▆▆▆▆▆▆▆▆▆▆▆ ✗ 6 DNS ▆▆▆▆▆▆▆▆▆▆ ✗ 4 PKI ▆▆▆▆▆ ✗ 2
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleChart -Role Fail -InputObject ([ordered] @{
'Domain controllers' = 14
'Group Policy' = 9
'Kerberos' = 6
'DNS' = 4
'PKI' = 2
}) -Type Bar | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleChart -Role Fail -InputObject ([ordered] @{
'Domain controllers' = 14
'Group Policy' = 9
'Kerberos' = 6
'DNS' = 4
'PKI' = 2
}) -Type Bar | Show-ConsoleTerminal.Write(new BarChart() { Role = ThemeToken.Fail }
.Add("Domain controllers", 14)
.Add("Group Policy", 9)
.Add("Kerberos", 6)
.Add("DNS", 4)
.Add("PKI", 2));Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Terminal.Write(new BarChart() { Role = ThemeToken.Fail }
.Add("Domain controllers", 14)
.Add("Group Policy", 9)
.Add("Kerberos", 6)
.Add("DNS", 4)
.Add("PKI", 2));Ui.BarChart()
.Role(ThemeToken.Fail)
.Add("Domain controllers", 14)
.Add("Group Policy", 9)
.Add("Kerberos", 6)
.Add("DNS", 4)
.Add("PKI", 2)
.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Ui.BarChart()
.Role(ThemeToken.Fail)
.Add("Domain controllers", 14)
.Add("Group Policy", 9)
.Add("Kerberos", 6)
.Add("DNS", 4)
.Add("PKI", 2)
.Show();
Stacked bar
60 × 3Parts of a whole in one bar, with a legend of counts and shares.
███████████████████████████████████████████████████████ 500 █ ✓ Passed 412 82% █ ▲ Warnings 51 10% █ ✗ Failed 23 5% █ – Skipped 14 3%
███████████████████████████████████████████████████████ 500 █ ✓ Passed 412 82% █ ▲ Warnings 51 10% █ ✗ Failed 23 5% █ – Skipped 14 3%
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
New-ConsoleChart -Content {
[pscustomobject]@{ Label = 'Passed'; Value = 412; Role = 'Pass' }
[pscustomobject]@{ Label = 'Warnings'; Value = 51; Role = 'Warn' }
[pscustomobject]@{ Label = 'Failed'; Value = 23; Role = 'Fail' }
[pscustomobject]@{ Label = 'Skipped'; Value = 14; Role = 'Skip' }
} -Type Stacked | Show-ConsoleFull program
Import-Module ConsoleMonster
New-ConsoleChart -Content {
[pscustomobject]@{ Label = 'Passed'; Value = 412; Role = 'Pass' }
[pscustomobject]@{ Label = 'Warnings'; Value = 51; Role = 'Warn' }
[pscustomobject]@{ Label = 'Failed'; Value = 23; Role = 'Fail' }
[pscustomobject]@{ Label = 'Skipped'; Value = 14; Role = 'Skip' }
} -Type Stacked | Show-ConsoleTerminal.Write(new StackedBar()
.Add("Passed", 412, ThemeToken.Pass)
.Add("Warnings", 51, ThemeToken.Warn)
.Add("Failed", 23, ThemeToken.Fail)
.Add("Skipped", 14, ThemeToken.Skip));Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
Terminal.Write(new StackedBar()
.Add("Passed", 412, ThemeToken.Pass)
.Add("Warnings", 51, ThemeToken.Warn)
.Add("Failed", 23, ThemeToken.Fail)
.Add("Skipped", 14, ThemeToken.Skip));Ui.StackedBar()
.Add("Passed", 412, ThemeToken.Pass)
.Add("Warnings", 51, ThemeToken.Warn)
.Add("Failed", 23, ThemeToken.Fail)
.Add("Skipped", 14, ThemeToken.Skip)
.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
Ui.StackedBar()
.Add("Passed", 412, ThemeToken.Pass)
.Add("Warnings", 51, ThemeToken.Warn)
.Add("Failed", 23, ThemeToken.Fail)
.Add("Skipped", 14, ThemeToken.Skip)
.Show();
Sparkline
60 × 5A compact trend in one or more rows, with the latest value.
rules/s ▂▃▂▃▃▃▄▄▄▅▅▅▅▆▆▆▆▆▇▇▇███ 60/s ▁▂▁▃▃▅▆▅▇█▇ ▁▂▂▄▃▅▇▆█▇███████████ ▇█▇█████████████████████ 60/s
rules/s ▂▃▂▃▃▃▄▄▄▅▅▅▅▆▆▆▆▆▇▇▇███ 60/s ▁▂▁▃▃▅▆▅▇█▇ ▁▂▂▄▃▅▇▆█▇███████████ ▇█▇█████████████████████ 60/s
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
$rate = 18, 21, 19, 24, 27, 26, 31, 29, 34, 38, 36, 41, 39, 44, 47, 45, 50, 48, 53, 57, 54, 59, 62,
60
New-ConsoleRows -Gap 1 -Content {
New-ConsoleChart -Title 'rules/s' -Unit '/s' -Type Sparkline -Values $rate
New-ConsoleChart -Height 3 -Unit '/s' -Type Sparkline -Values $rate
} | Show-ConsoleFull program
Import-Module ConsoleMonster
$rate = 18, 21, 19, 24, 27, 26, 31, 29, 34, 38, 36, 41, 39, 44, 47, 45, 50, 48, 53, 57, 54, 59, 62,
60
New-ConsoleRows -Gap 1 -Content {
New-ConsoleChart -Title 'rules/s' -Unit '/s' -Type Sparkline -Values $rate
New-ConsoleChart -Height 3 -Unit '/s' -Type Sparkline -Values $rate
} | Show-Consoledouble[] rate =
{
18, 21, 19, 24, 27, 26, 31, 29, 34, 38, 36, 41, 39, 44, 47, 45, 50, 48, 53, 57, 54, 59, 62, 60
};
Terminal.Write(new Rows() { Gap = 1 }
.Add(new Sparkline() { Title = "rules/s", Unit = "/s" }.Values(rate))
.Add(new Sparkline() { Height = 3, Unit = "/s" }.Values(rate)));Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
double[] rate =
{
18, 21, 19, 24, 27, 26, 31, 29, 34, 38, 36, 41, 39, 44, 47, 45, 50, 48, 53, 57, 54, 59, 62, 60
};
Terminal.Write(new Rows() { Gap = 1 }
.Add(new Sparkline() { Title = "rules/s", Unit = "/s" }.Values(rate))
.Add(new Sparkline() { Height = 3, Unit = "/s" }.Values(rate)));double[] rate =
{
18, 21, 19, 24, 27, 26, 31, 29, 34, 38, 36, 41, 39, 44, 47, 45, 50, 48, 53, 57, 54, 59, 62, 60
};
Ui.Rows()
.Gap(1)
.Add(Ui.Sparkline().Title("rules/s").Unit("/s").Values(rate))
.Add(Ui.Sparkline().Height(3).Unit("/s").Values(rate))
.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Layout;
using ConsoleMonster.Widgets;
double[] rate =
{
18, 21, 19, 24, 27, 26, 31, 29, 34, 38, 36, 41, 39, 44, 47, 45, 50, 48, 53, 57, 54, 59, 62, 60
};
Ui.Rows()
.Gap(1)
.Add(Ui.Sparkline().Title("rules/s").Unit("/s").Values(rate))
.Add(Ui.Sparkline().Height(3).Unit("/s").Values(rate))
.Show();
Histogram
60 × 6Values counted into buckets with labelled edges.
5│ █████████ │ █████████ ████████ │ █████████ █████████ ████████ │████████ █████████ █████████ ████████ █████████ 0│████████ █████████ █████████ ████████ █████████ █████████ 0s 0.25s 0.5s 1s 2s 4s 8s
5│ █████████ │ █████████ ████████ │ █████████ █████████ ████████ │████████ █████████ █████████ ████████ █████████ 0│████████ █████████ █████████ ████████ █████████ █████████ 0s 0.25s 0.5s 1s 2s 4s 8s
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
$seconds = 0.1, 0.2, 0.3, 0.3, 0.4, 0.6, 0.7, 0.7, 0.8, 0.9, 1.2, 1.4, 1.5, 1.9, 2.4, 3.1, 5.2
New-ConsoleChart -Height 5 -Unit 's' -Type Histogram -Values $seconds -Edges 0, 0.25, 0.5, 1, 2, 4,
8 |
Show-ConsoleFull program
Import-Module ConsoleMonster
$seconds = 0.1, 0.2, 0.3, 0.3, 0.4, 0.6, 0.7, 0.7, 0.8, 0.9, 1.2, 1.4, 1.5, 1.9, 2.4, 3.1, 5.2
New-ConsoleChart -Height 5 -Unit 's' -Type Histogram -Values $seconds -Edges 0, 0.25, 0.5, 1, 2, 4,
8 |
Show-ConsoleHistogram durations = new Histogram(new double[] { 0, 0.25, 0.5, 1, 2, 4, 8 })
{
Height = 5,
Unit = "s"
};
foreach (double seconds in new[]
{
0.1, 0.2, 0.3, 0.3, 0.4, 0.6, 0.7, 0.7, 0.8, 0.9, 1.2, 1.4, 1.5, 1.9, 2.4, 3.1, 5.2
}
)
{
durations.Add(seconds);
}
Terminal.Write(durations);Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
Histogram durations = new Histogram(new double[] { 0, 0.25, 0.5, 1, 2, 4, 8 })
{
Height = 5,
Unit = "s"
};
foreach (double seconds in new[]
{
0.1, 0.2, 0.3, 0.3, 0.4, 0.6, 0.7, 0.7, 0.8, 0.9, 1.2, 1.4, 1.5, 1.9, 2.4, 3.1, 5.2
}
)
{
durations.Add(seconds);
}
Terminal.Write(durations);Histogram durations = (Histogram)Ui.Chart()
.Type(ChartType.Histogram)
.Edges(new double[] { 0, 0.25, 0.5, 1, 2, 4, 8 })
.Height(5)
.Unit("s")
.Build();
foreach (double seconds in new[]
{
0.1, 0.2, 0.3, 0.3, 0.4, 0.6, 0.7, 0.7, 0.8, 0.9, 1.2, 1.4, 1.5, 1.9, 2.4, 3.1, 5.2
}
)
{
durations.Add(seconds);
}
durations.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Widgets;
Histogram durations = (Histogram)Ui.Chart()
.Type(ChartType.Histogram)
.Edges(new double[] { 0, 0.25, 0.5, 1, 2, 4, 8 })
.Height(5)
.Unit("s")
.Build();
foreach (double seconds in new[]
{
0.1, 0.2, 0.3, 0.3, 0.4, 0.6, 0.7, 0.7, 0.8, 0.9, 1.2, 1.4, 1.5, 1.9, 2.4, 3.1, 5.2
}
)
{
durations.Add(seconds);
}
durations.Show();
Line chart
60 × 8Braille line series with an axis and a legend.
31│ ⢀⢄⣀⠤⠒⠢⠔⠊⠑⠢⠒⠒⠢⡠⠤⠤⡀ │⢀⠤⠒⠒⠊⠁ ⠑⠒⠒⠢⣀⣀ ⢀⣀⣀⠤1 │⠁ ⠉⠒⠤⠤⠤⡀ ⡠⠔⠤⠊⠁ │ ⠑⠉⠉⠑⠤⠤⠒⢄⡠⠔⠒⠤⠒⠉⠑⠊ │⣀⣀⣀ ⢀⣀⣀⣀⣀⣀⣀⡀ 0│ ⠉⠉⠉⠉⠉⠒⠒⠒⠒⠢⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠒⠒⠒⠊⠉⠉⠉⠉⠁ ⠈⠉⠉⠉⠉⠑⠒⠒⠒⠤⠤⠤⠤⠤⠤2 └───────────────────────────────────────────────────────── 1 completed 2 ✗ failed
31│ ⢀⢄⣀⠤⠒⠢⠔⠊⠑⠢⠒⠒⠢⡠⠤⠤⡀ │⢀⠤⠒⠒⠊⠁ ⠑⠒⠒⠢⣀⣀ ⢀⣀⣀⠤1 │⠁ ⠉⠒⠤⠤⠤⡀ ⡠⠔⠤⠊⠁ │ ⠑⠉⠉⠑⠤⠤⠒⢄⡠⠔⠒⠤⠒⠉⠑⠊ │⣀⣀⣀ ⢀⣀⣀⣀⣀⣀⣀⡀ 0│ ⠉⠉⠉⠉⠉⠒⠒⠒⠒⠢⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠤⠒⠒⠒⠊⠉⠉⠉⠉⠁ ⠈⠉⠉⠉⠉⠑⠒⠒⠒⠤⠤⠤⠤⠤⠤2 └───────────────────────────────────────────────────────── 1 completed 2 ✗ failed
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
$completed = foreach ($i in 0..47) { 20 + 9 * [math]::Sin($i / 7) + $i % 3 }
$failed = foreach ($i in 0..47) { 3 + 2 * [math]::Cos($i / 5) }
New-ConsoleChart -Height 7 -Content {
[pscustomobject]@{ Key = 'completed'; Role = 'Accent'; Values = $completed }
[pscustomobject]@{ Key = 'failed'; Role = 'Fail'; Values = $failed }
} -Type Line | Show-ConsoleFull program
Import-Module ConsoleMonster
$completed = foreach ($i in 0..47) { 20 + 9 * [math]::Sin($i / 7) + $i % 3 }
$failed = foreach ($i in 0..47) { 3 + 2 * [math]::Cos($i / 5) }
New-ConsoleChart -Height 7 -Content {
[pscustomobject]@{ Key = 'completed'; Role = 'Accent'; Values = $completed }
[pscustomobject]@{ Key = 'failed'; Role = 'Fail'; Values = $failed }
} -Type Line | Show-ConsoleLineChart chart = new LineChart()
{
Height = 7
};
chart.Series("completed", ThemeToken.Accent);
chart.Series("failed", ThemeToken.Fail);
for (int i = 0; i < 48; i++)
{
chart.Add("completed", 20 + (9 * Math.Sin(i / 7.0)) + (i % 3));
chart.Add("failed", 3 + (2 * Math.Cos(i / 5.0)));
}
Terminal.Write(chart);Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
LineChart chart = new LineChart()
{
Height = 7
};
chart.Series("completed", ThemeToken.Accent);
chart.Series("failed", ThemeToken.Fail);
for (int i = 0; i < 48; i++)
{
chart.Add("completed", 20 + (9 * Math.Sin(i / 7.0)) + (i % 3));
chart.Add("failed", 3 + (2 * Math.Cos(i / 5.0)));
}
Terminal.Write(chart);LineChart chart = Ui.LineChart().Height(7);
chart.Series("completed", ThemeToken.Accent);
chart.Series("failed", ThemeToken.Fail);
for (int i = 0; i < 48; i++)
{
chart.Add("completed", 20 + (9 * Math.Sin(i / 7.0)) + (i % 3));
chart.Add("failed", 3 + (2 * Math.Cos(i / 5.0)));
}
chart.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
LineChart chart = Ui.LineChart().Height(7);
chart.Series("completed", ThemeToken.Accent);
chart.Series("failed", ThemeToken.Fail);
for (int i = 0; i < 48; i++)
{
chart.Add("completed", 20 + (9 * Math.Sin(i / 7.0)) + (i % 3));
chart.Add("failed", 3 + (2 * Math.Cos(i / 5.0)));
}
chart.Show();
Scatter chart
60 × 7The same braille canvas as points instead of lines.
89ms│ ⢀ ⠄ ⠈ ⢀ ⠄ ⠈ │⠂ ⢀ ⡀ ⢀ ⠂ ⢀ ⢀ ⡀ ⡀⠈ ⢀ │ ⠂⡀⠡ ⠐ ⠠ ⠂⡀ ⢁ ⠐ ⠠ ⠂⡀⠁⠄ ⢂ ⠠ ⠐ ⠄ ⠁⡀ ⠈⠠ ⠐⢀ ⠄ ⠂⡀ ⠄⠐⢀ │ ⠈ ⠁ ⠁ ⠈ ⠂ ⠈ ⠁ ⠈ ⠐ ⠁ │ 0ms│ └───────────────────────────────────────────────────────
89ms│ ⢀ ⠄ ⠈ ⢀ ⠄ ⠈ │⠂ ⢀ ⡀ ⢀ ⠂ ⢀ ⢀ ⡀ ⡀⠈ ⢀ │ ⠂⡀⠡ ⠐ ⠠ ⠂⡀ ⢁ ⠐ ⠠ ⠂⡀⠁⠄ ⢂ ⠠ ⠐ ⠄ ⠁⡀ ⠈⠠ ⠐⢀ ⠄ ⠂⡀ ⠄⠐⢀ │ ⠈ ⠁ ⠁ ⠈ ⠂ ⠈ ⠁ ⠈ ⠐ ⠁ │ 0ms│ └───────────────────────────────────────────────────────
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
$latency = foreach ($i in 0..59) { 40 + ($i * 37) % 23 + $(if ($i % 7 -eq 0) { 30 } else { 0 }) }
New-ConsoleChart -Height 7 -Unit 'ms' -Content {
[pscustomobject]@{ Key = 'latency'; Role = 'Accent2'; Values = $latency }
} -Type Scatter | Show-ConsoleFull program
Import-Module ConsoleMonster
$latency = foreach ($i in 0..59) { 40 + ($i * 37) % 23 + $(if ($i % 7 -eq 0) { 30 } else { 0 }) }
New-ConsoleChart -Height 7 -Unit 'ms' -Content {
[pscustomobject]@{ Key = 'latency'; Role = 'Accent2'; Values = $latency }
} -Type Scatter | Show-ConsoleLineChart chart = new LineChart()
{
Height = 7,
Scatter = true,
Unit = "ms"
};
chart.Series("latency", ThemeToken.Accent2);
for (int i = 0; i < 60; i++)
{
chart.Add("latency", 40 + ((i * 37) % 23) + (i % 7 == 0 ? 30 : 0));
}
Terminal.Write(chart);Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
LineChart chart = new LineChart()
{
Height = 7,
Scatter = true,
Unit = "ms"
};
chart.Series("latency", ThemeToken.Accent2);
for (int i = 0; i < 60; i++)
{
chart.Add("latency", 40 + ((i * 37) % 23) + (i % 7 == 0 ? 30 : 0));
}
Terminal.Write(chart);LineChart chart = Ui.LineChart().Height(7).Scatter().Unit("ms");
chart.Series("latency", ThemeToken.Accent2);
for (int i = 0; i < 60; i++)
{
chart.Add("latency", 40 + ((i * 37) % 23) + (i % 7 == 0 ? 30 : 0));
}
chart.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
LineChart chart = Ui.LineChart().Height(7).Scatter().Unit("ms");
chart.Series("latency", ThemeToken.Accent2);
for (int i = 0; i < 60; i++)
{
chart.Add("latency", 40 + ((i * 37) % 23) + (i % 7 == 0 ? 30 : 0));
}
chart.Show();
Overview
Month calendars, status maps, flows, worker lanes and run summaries: the shapes an operations report is built from.
Calendar
40 × 11A month with a status per date: the worst event of the day wins and today is outlined.
November 2026 Week Mo Tu We Th Fr Sa Su W44 01 W45 02 03✓ 04 05 06 07 08 W46 09 10✗ 11 12 13 14 15 W47 16 17✓ 18 19▲ 20 21 22 W48 23 24◆ 25 26 27○ 28 29 W49 30 ✗ Fail · ▲ Warn · ○ Pending · ✓ Pass ◆ Info · Today 18 Nov
November 2026 Week Mo Tu We Th Fr Sa Su W44 01 W45 02 03✓ 04 05 06 07 08 W46 09 10✗ 11 12 13 14 15 W47 16 17✓ 18 19▲ 20 21 22 W48 23 24◆ 25 26 27○ 28 29 W49 30 ✗ Fail · ▲ Warn · ○ Pending · ✓ Pass ◆ Info · Today 18 Nov
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
# Each date takes the most severe status of its events; today is outlined.
@(
@{ Date = [datetime]'2026-11-03'; Status = 'Pass'; Label = 'Backup verified' }
@{ Date = [datetime]'2026-11-10'; Status = 'Fail'; Label = 'Backup failed' }
@{ Date = [datetime]'2026-11-17'; Status = 'Pass'; Label = 'Backup verified' }
@{ Date = [datetime]'2026-11-19'; Status = 'Warn'; Label = 'Certificate expires' }
@{ Date = [datetime]'2026-11-24'; Status = 'Info'; Label = 'Change window' }
@{ Date = [datetime]'2026-11-27'; Status = 'Pending'; Label = 'Restore drill' }
) | ForEach-Object { [pscustomobject] $_ } |
New-ConsoleCalendar -Year 2026 -Month 11 -FirstDayOfWeek Monday -Today '2026-11-18' |
Show-ConsoleFull program
Import-Module ConsoleMonster
# Each date takes the most severe status of its events; today is outlined.
@(
@{ Date = [datetime]'2026-11-03'; Status = 'Pass'; Label = 'Backup verified' }
@{ Date = [datetime]'2026-11-10'; Status = 'Fail'; Label = 'Backup failed' }
@{ Date = [datetime]'2026-11-17'; Status = 'Pass'; Label = 'Backup verified' }
@{ Date = [datetime]'2026-11-19'; Status = 'Warn'; Label = 'Certificate expires' }
@{ Date = [datetime]'2026-11-24'; Status = 'Info'; Label = 'Change window' }
@{ Date = [datetime]'2026-11-27'; Status = 'Pending'; Label = 'Restore drill' }
) | ForEach-Object { [pscustomobject] $_ } |
New-ConsoleCalendar -Year 2026 -Month 11 -FirstDayOfWeek Monday -Today '2026-11-18' |
Show-Console// Each date takes the most severe status of its events; today is outlined.
var calendar = new Calendar(2026, 11, new[] {
new CalendarMark(new DateTime(2026, 11, 3), StatusKind.Pass, "Backup verified"),
new CalendarMark(new DateTime(2026, 11, 10), StatusKind.Fail, "Backup failed"),
new CalendarMark(new DateTime(2026, 11, 17), StatusKind.Pass, "Backup verified"),
new CalendarMark(new DateTime(2026, 11, 19), StatusKind.Warn, "Certificate expires"),
new CalendarMark(new DateTime(2026, 11, 24), StatusKind.Info, "Change window"),
new CalendarMark(new DateTime(2026, 11, 27), StatusKind.Pending, "Restore drill")
}) {
FirstDayOfWeek = DayOfWeek.Monday,
Today = new DateTime(2026, 11, 18)
};
Terminal.Write(calendar);Full program
using ConsoleMonster;
using ConsoleMonster.Dates;
using ConsoleMonster.Styling;
using Calendar = ConsoleMonster.Widgets.Calendar;
// Each date takes the most severe status of its events; today is outlined.
var calendar = new Calendar(2026, 11, new[] {
new CalendarMark(new DateTime(2026, 11, 3), StatusKind.Pass, "Backup verified"),
new CalendarMark(new DateTime(2026, 11, 10), StatusKind.Fail, "Backup failed"),
new CalendarMark(new DateTime(2026, 11, 17), StatusKind.Pass, "Backup verified"),
new CalendarMark(new DateTime(2026, 11, 19), StatusKind.Warn, "Certificate expires"),
new CalendarMark(new DateTime(2026, 11, 24), StatusKind.Info, "Change window"),
new CalendarMark(new DateTime(2026, 11, 27), StatusKind.Pending, "Restore drill")
}) {
FirstDayOfWeek = DayOfWeek.Monday,
Today = new DateTime(2026, 11, 18)
};
Terminal.Write(calendar);// Each date takes the most severe status of its events; today is outlined.
var calendar = Ui.Calendar()
.Year(2026)
.Month(11)
.Marks(new[]
{
new CalendarMark(new DateTime(2026, 11, 3), StatusKind.Pass, "Backup verified"),
new CalendarMark(new DateTime(2026, 11, 10), StatusKind.Fail, "Backup failed"),
new CalendarMark(new DateTime(2026, 11, 17), StatusKind.Pass, "Backup verified"),
new CalendarMark(new DateTime(2026, 11, 19), StatusKind.Warn, "Certificate expires"),
new CalendarMark(new DateTime(2026, 11, 24), StatusKind.Info, "Change window"),
new CalendarMark(new DateTime(2026, 11, 27), StatusKind.Pending, "Restore drill")
})
.FirstDayOfWeek(DayOfWeek.Monday)
.Today(new DateTime(2026, 11, 18));
calendar.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Dates;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// Each date takes the most severe status of its events; today is outlined.
var calendar = Ui.Calendar()
.Year(2026)
.Month(11)
.Marks(new[]
{
new CalendarMark(new DateTime(2026, 11, 3), StatusKind.Pass, "Backup verified"),
new CalendarMark(new DateTime(2026, 11, 10), StatusKind.Fail, "Backup failed"),
new CalendarMark(new DateTime(2026, 11, 17), StatusKind.Pass, "Backup verified"),
new CalendarMark(new DateTime(2026, 11, 19), StatusKind.Warn, "Certificate expires"),
new CalendarMark(new DateTime(2026, 11, 24), StatusKind.Info, "Change window"),
new CalendarMark(new DateTime(2026, 11, 27), StatusKind.Pending, "Restore drill")
})
.FirstDayOfWeek(DayOfWeek.Monday)
.Today(new DateTime(2026, 11, 18));
calendar.Show();
Status map
60 × 5One cell per item in labelled rows, with a legend that counts each status.
web-01 ✓ ✓ – – web-02 ✓ ▲ – – api-01 ✓ ✓ ✗ ✓ db-01 – – ✓ ✓ ✓ 8 passed ✗ 1 failed ▲ 1 warning – 6 skipped
web-01 ✓ ✓ – – web-02 ✓ ▲ – – api-01 ✓ ✓ ✗ ✓ db-01 – – ✓ ✓ ✓ 8 passed ✗ 1 failed ▲ 1 warning – 6 skipped
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
# One cell per host and port, filled row by row, with a legend of counts.
$states = @(
'Pass', 'Pass', 'Skip', 'Skip'
'Pass', 'Warn', 'Skip', 'Skip'
'Pass', 'Pass', 'Fail', 'Pass'
'Skip', 'Skip', 'Pass', 'Pass'
)
New-ConsoleCellMap -InputObject $states -Columns 4 -LegendLines 2 `
-RowLabels 'web-01', 'web-02', 'api-01', 'db-01' | Show-ConsoleFull program
Import-Module ConsoleMonster
# One cell per host and port, filled row by row, with a legend of counts.
$states = @(
'Pass', 'Pass', 'Skip', 'Skip'
'Pass', 'Warn', 'Skip', 'Skip'
'Pass', 'Pass', 'Fail', 'Pass'
'Skip', 'Skip', 'Pass', 'Pass'
)
New-ConsoleCellMap -InputObject $states -Columns 4 -LegendLines 2 `
-RowLabels 'web-01', 'web-02', 'api-01', 'db-01' | Show-Console// One cell per host and port, filled row by row, with a legend of counts.
var map = new CellMap { Columns = 4, LegendLines = 2 };
foreach (string host in new[] { "web-01", "web-02", "api-01", "db-01" }) {
map.RowLabels.Add(host);
}
StatusKind[] states = {
StatusKind.Pass, StatusKind.Pass, StatusKind.Skip, StatusKind.Skip,
StatusKind.Pass, StatusKind.Warn, StatusKind.Skip, StatusKind.Skip,
StatusKind.Pass, StatusKind.Pass, StatusKind.Fail, StatusKind.Pass,
StatusKind.Skip, StatusKind.Skip, StatusKind.Pass, StatusKind.Pass
};
foreach (StatusKind state in states) {
map.Add(state);
}
Terminal.Write(map);Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// One cell per host and port, filled row by row, with a legend of counts.
var map = new CellMap { Columns = 4, LegendLines = 2 };
foreach (string host in new[] { "web-01", "web-02", "api-01", "db-01" }) {
map.RowLabels.Add(host);
}
StatusKind[] states = {
StatusKind.Pass, StatusKind.Pass, StatusKind.Skip, StatusKind.Skip,
StatusKind.Pass, StatusKind.Warn, StatusKind.Skip, StatusKind.Skip,
StatusKind.Pass, StatusKind.Pass, StatusKind.Fail, StatusKind.Pass,
StatusKind.Skip, StatusKind.Skip, StatusKind.Pass, StatusKind.Pass
};
foreach (StatusKind state in states) {
map.Add(state);
}
Terminal.Write(map);// One cell per host and port, filled row by row, with a legend of counts.
var map = Ui.CellMap().Columns(4).LegendLines(2);
foreach (string host in new[] { "web-01", "web-02", "api-01", "db-01" }) {
map.RowLabels.Add(host);
}
StatusKind[] states = {
StatusKind.Pass, StatusKind.Pass, StatusKind.Skip, StatusKind.Skip,
StatusKind.Pass, StatusKind.Warn, StatusKind.Skip, StatusKind.Skip,
StatusKind.Pass, StatusKind.Pass, StatusKind.Fail, StatusKind.Pass,
StatusKind.Skip, StatusKind.Skip, StatusKind.Pass, StatusKind.Pass
};
foreach (StatusKind state in states) {
map.Add(state);
}
map.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// One cell per host and port, filled row by row, with a legend of counts.
var map = Ui.CellMap().Columns(4).LegendLines(2);
foreach (string host in new[] { "web-01", "web-02", "api-01", "db-01" }) {
map.RowLabels.Add(host);
}
StatusKind[] states = {
StatusKind.Pass, StatusKind.Pass, StatusKind.Skip, StatusKind.Skip,
StatusKind.Pass, StatusKind.Warn, StatusKind.Skip, StatusKind.Skip,
StatusKind.Pass, StatusKind.Pass, StatusKind.Fail, StatusKind.Pass,
StatusKind.Skip, StatusKind.Skip, StatusKind.Pass, StatusKind.Pass
};
foreach (StatusKind state in states) {
map.Add(state);
}
map.Show();
Flow
72 × 6Steps joined by labelled connections; a cut connection shows where a path breaks.
┌──────────┐ :443 ┌─────────┐ HTTP ┌───────┐ timeout ┌────────────┐ │ ✓ Client │─────→│ ✓ Proxy │─────→│ ▲ API │─── ✗ ──→│ ✗ Database │ └──────────┘ └─────────┘ └───────┘ └────────────┘ │ └──→ ✗ listener stopped
┌──────────┐ :443 ┌─────────┐ HTTP ┌───────┐ timeout ┌────────────┐ │ ✓ Client │─────→│ ✓ Proxy │─────→│ ▲ API │─── ✗ ──→│ ✗ Database │ └──────────┘ └─────────┘ └───────┘ └────────────┘ │ └──→ ✗ listener stopped
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
# Steps joined by labelled connections; a cut connection shows where the path breaks.
New-ConsoleFlow -Content {
[pscustomobject] @{ Kind = 'Node'; Key = 'client'; Label = 'Client'; Status = 'Pass' }
[pscustomobject] @{ Kind = 'Node'; Key = 'proxy'; Label = 'Proxy'; Status = 'Pass' }
[pscustomobject] @{ Kind = 'Node'; Key = 'api'; Label = 'API'; Status = 'Warn' }
[pscustomobject] @{ Kind = 'Node'; Key = 'db'; Label = 'Database'; Status = 'Fail' }
[pscustomobject] @{ Kind = 'Edge'; From = 'client'; To = 'proxy'; Label = ':443' }
[pscustomobject] @{ Kind = 'Edge'; From = 'proxy'; To = 'api'; Label = 'HTTP' }
[pscustomobject] @{ Kind = 'Edge'; From = 'api'; To = 'db'; Label = 'timeout'; Status = 'Fail'
Cut = $true }
[pscustomobject] @{ Kind = 'Branch'; From = 'db'; Label = 'listener stopped'; Status = 'Fail' }
} | Show-ConsoleFull program
Import-Module ConsoleMonster
# Steps joined by labelled connections; a cut connection shows where the path breaks.
New-ConsoleFlow -Content {
[pscustomobject] @{ Kind = 'Node'; Key = 'client'; Label = 'Client'; Status = 'Pass' }
[pscustomobject] @{ Kind = 'Node'; Key = 'proxy'; Label = 'Proxy'; Status = 'Pass' }
[pscustomobject] @{ Kind = 'Node'; Key = 'api'; Label = 'API'; Status = 'Warn' }
[pscustomobject] @{ Kind = 'Node'; Key = 'db'; Label = 'Database'; Status = 'Fail' }
[pscustomobject] @{ Kind = 'Edge'; From = 'client'; To = 'proxy'; Label = ':443' }
[pscustomobject] @{ Kind = 'Edge'; From = 'proxy'; To = 'api'; Label = 'HTTP' }
[pscustomobject] @{ Kind = 'Edge'; From = 'api'; To = 'db'; Label = 'timeout'; Status = 'Fail'
Cut = $true }
[pscustomobject] @{ Kind = 'Branch'; From = 'db'; Label = 'listener stopped'; Status = 'Fail' }
} | Show-Console// Steps joined by labelled connections; a cut connection shows where the path breaks.
var flow = new Flow()
.Node("client", "Client", StatusKind.Pass)
.Node("proxy", "Proxy", StatusKind.Pass)
.Node("api", "API", StatusKind.Warn)
.Node("db", "Database", StatusKind.Fail)
.Edge("client", "proxy", ":443")
.Edge("proxy", "api", "HTTP")
.Edge("api", "db", "timeout", StatusKind.Fail, true);
flow.Branch = new FlowBranch("db", "listener stopped", default, StatusKind.Fail);
Terminal.Write(flow);Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// Steps joined by labelled connections; a cut connection shows where the path breaks.
var flow = new Flow()
.Node("client", "Client", StatusKind.Pass)
.Node("proxy", "Proxy", StatusKind.Pass)
.Node("api", "API", StatusKind.Warn)
.Node("db", "Database", StatusKind.Fail)
.Edge("client", "proxy", ":443")
.Edge("proxy", "api", "HTTP")
.Edge("api", "db", "timeout", StatusKind.Fail, true);
flow.Branch = new FlowBranch("db", "listener stopped", default, StatusKind.Fail);
Terminal.Write(flow);// Steps joined by labelled connections; a cut connection shows where the path breaks.
var flow = Ui.Flow()
.Node("client", "Client", StatusKind.Pass)
.Node("proxy", "Proxy", StatusKind.Pass)
.Node("api", "API", StatusKind.Warn)
.Node("db", "Database", StatusKind.Fail)
.Edge("client", "proxy", ":443")
.Edge("proxy", "api", "HTTP")
.Edge("api", "db", "timeout", StatusKind.Fail, true)
.Branch(new FlowBranch("db", "listener stopped", default, StatusKind.Fail));
flow.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// Steps joined by labelled connections; a cut connection shows where the path breaks.
var flow = Ui.Flow()
.Node("client", "Client", StatusKind.Pass)
.Node("proxy", "Proxy", StatusKind.Pass)
.Node("api", "API", StatusKind.Warn)
.Node("db", "Database", StatusKind.Fail)
.Edge("client", "proxy", ":443")
.Edge("proxy", "api", "HTTP")
.Edge("api", "db", "timeout", StatusKind.Fail, true)
.Branch(new FlowBranch("db", "listener stopped", default, StatusKind.Fail));
flow.Show();
Lanes
72 × 4One progress lane per worker or server, each with its own counts and detail.
✓ DC01 ━━━━━━━━━━━━━━━━━━━ 100% ✓ 40 ✗ 0 ▲ 0 done ⠙ DC02 ━━━━━━━━━━╸──────── 55% ✓ 21 ✗ 0 ▲ 1 replication ⠹ DC03 ━━━━╸────────────── 22% ✓ 7 ✗ 2 ▲ 0 DNS records ○ DC04 ─────────────────── queued
✓ DC01 ━━━━━━━━━━━━━━━━━━━ 100% ✓ 40 ✗ 0 ▲ 0 done ⠙ DC02 ━━━━━━━━━━╸──────── 55% ✓ 21 ✗ 0 ▲ 1 replication ⠹ DC03 ━━━━╸────────────── 22% ✓ 7 ✗ 2 ▲ 0 DNS records ○ DC04 ─────────────────── queued
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
# One lane per worker: its own bar, counts and current detail.
New-ConsoleLanes -WidgetId servers -Content {
[pscustomobject] @{ Key = 'DC01'; Total = 40; Value = 40; Passed = 40; Status = 'Pass' }
[pscustomobject] @{ Key = 'DC02'; Total = 40; Value = 22; Passed = 21; Warned = 1
Status = 'Running'; Detail = 'replication' }
[pscustomobject] @{ Key = 'DC03'; Total = 40; Value = 9; Passed = 7; Failed = 2
Status = 'Running'; Detail = 'DNS records' }
[pscustomobject] @{ Key = 'DC04'; Total = 40 }
} | Show-ConsoleFull program
Import-Module ConsoleMonster
# One lane per worker: its own bar, counts and current detail.
New-ConsoleLanes -WidgetId servers -Content {
[pscustomobject] @{ Key = 'DC01'; Total = 40; Value = 40; Passed = 40; Status = 'Pass' }
[pscustomobject] @{ Key = 'DC02'; Total = 40; Value = 22; Passed = 21; Warned = 1
Status = 'Running'; Detail = 'replication' }
[pscustomobject] @{ Key = 'DC03'; Total = 40; Value = 9; Passed = 7; Failed = 2
Status = 'Running'; Detail = 'DNS records' }
[pscustomobject] @{ Key = 'DC04'; Total = 40 }
} | Show-Console// One lane per worker: its own bar, counts and current detail.
var lanes = new Lanes("servers");
Lane dc01 = lanes.Add("DC01", "DC01", 40);
dc01.Value = 40;
dc01.Passed = 40;
dc01.Status = StatusKind.Pass;
Lane dc02 = lanes.Add("DC02", "DC02", 40);
dc02.Value = 22;
dc02.Passed = 21;
dc02.Warned = 1;
dc02.Status = StatusKind.Running;
dc02.Detail = "replication";
Lane dc03 = lanes.Add("DC03", "DC03", 40);
dc03.Value = 9;
dc03.Passed = 7;
dc03.Failed = 2;
dc03.Status = StatusKind.Running;
dc03.Detail = "DNS records";
lanes.Add("DC04", "DC04", 40);
Terminal.Write(lanes);Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// One lane per worker: its own bar, counts and current detail.
var lanes = new Lanes("servers");
Lane dc01 = lanes.Add("DC01", "DC01", 40);
dc01.Value = 40;
dc01.Passed = 40;
dc01.Status = StatusKind.Pass;
Lane dc02 = lanes.Add("DC02", "DC02", 40);
dc02.Value = 22;
dc02.Passed = 21;
dc02.Warned = 1;
dc02.Status = StatusKind.Running;
dc02.Detail = "replication";
Lane dc03 = lanes.Add("DC03", "DC03", 40);
dc03.Value = 9;
dc03.Passed = 7;
dc03.Failed = 2;
dc03.Status = StatusKind.Running;
dc03.Detail = "DNS records";
lanes.Add("DC04", "DC04", 40);
Terminal.Write(lanes);// One lane per worker: its own bar, counts and current detail.
var lanes = Ui.Lanes("servers");
Lane dc01 = lanes.Add("DC01", "DC01", 40).Value(40).Passed(40).Status(StatusKind.Pass);
Lane dc02 = lanes.Add("DC02", "DC02", 40)
.Value(22)
.Passed(21)
.Warned(1)
.Status(StatusKind.Running)
.Detail("replication");
Lane dc03 = lanes.Add("DC03", "DC03", 40)
.Value(9)
.Passed(7)
.Failed(2)
.Status(StatusKind.Running)
.Detail("DNS records");
lanes.Add("DC04", "DC04", 40);
lanes.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// One lane per worker: its own bar, counts and current detail.
var lanes = Ui.Lanes("servers");
Lane dc01 = lanes.Add("DC01", "DC01", 40).Value(40).Passed(40).Status(StatusKind.Pass);
Lane dc02 = lanes.Add("DC02", "DC02", 40)
.Value(22)
.Passed(21)
.Warned(1)
.Status(StatusKind.Running)
.Detail("replication");
Lane dc03 = lanes.Add("DC03", "DC03", 40)
.Value(9)
.Passed(7)
.Failed(2)
.Status(StatusKind.Running)
.Detail("DNS records");
lanes.Add("DC04", "DC04", 40);
lanes.Show();
Run summary
84 × 1One line for a whole run: bar, counters, elapsed time and time left.
━━━━━━━━━━━━━━━───── 30/40 · 75% · ~14s left · ✓ 27 passed · ✗ 2 failed
━━━━━━━━━━━━━━━───── 30/40 · 75% · ~14s left · ✓ 27 passed · ✗ 2 failed
Same cells from PowerShell PowerShell 7.6 Windows PowerShell 5.1
# One line for the whole run: a bar, counters, elapsed time and the time left.
New-ConsoleSummaryBar -Value 30 -Total 40 -ElapsedSeconds 42 `
-Counter ([ordered] @{ passed = 27; failed = 2; skipped = 1 }) | Show-ConsoleFull program
Import-Module ConsoleMonster
# One line for the whole run: a bar, counters, elapsed time and the time left.
New-ConsoleSummaryBar -Value 30 -Total 40 -ElapsedSeconds 42 `
-Counter ([ordered] @{ passed = 27; failed = 2; skipped = 1 }) | Show-Console// One line for the whole run: a bar, counters, elapsed time and the time left.
var summary = new SummaryBar { Elapsed = TimeSpan.FromSeconds(42) }
.Progress(30, 40)
.Counter("passed", 27, StatusKind.Pass)
.Counter("failed", 2, StatusKind.Fail)
.Counter("skipped", 1, StatusKind.Skip);
Terminal.Write(summary);Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// One line for the whole run: a bar, counters, elapsed time and the time left.
var summary = new SummaryBar { Elapsed = TimeSpan.FromSeconds(42) }
.Progress(30, 40)
.Counter("passed", 27, StatusKind.Pass)
.Counter("failed", 2, StatusKind.Fail)
.Counter("skipped", 1, StatusKind.Skip);
Terminal.Write(summary);// One line for the whole run: a bar, counters, elapsed time and the time left.
var summary = Ui.SummaryBar()
.Elapsed(TimeSpan.FromSeconds(42))
.Progress(30, 40)
.Counter("passed", 27, StatusKind.Pass)
.Counter("failed", 2, StatusKind.Fail)
.Counter("skipped", 1, StatusKind.Skip);
summary.Show();
Full program
using ConsoleMonster;
using ConsoleMonster.Styling;
using ConsoleMonster.Widgets;
// One line for the whole run: a bar, counters, elapsed time and the time left.
var summary = Ui.SummaryBar()
.Elapsed(TimeSpan.FromSeconds(42))
.Progress(30, 40)
.Counter("passed", 27, StatusKind.Pass)
.Counter("failed", 2, StatusKind.Fail)
.Counter("skipped", 1, StatusKind.Skip);
summary.Show();