Jumbee.Console.Snapshot
0.1.3
See the version list below for details.
dotnet add package Jumbee.Console.Snapshot --version 0.1.3
NuGet\Install-Package Jumbee.Console.Snapshot -Version 0.1.3
<PackageReference Include="Jumbee.Console.Snapshot" Version="0.1.3" />
<PackageVersion Include="Jumbee.Console.Snapshot" Version="0.1.3" />
<PackageReference Include="Jumbee.Console.Snapshot" />
paket add Jumbee.Console.Snapshot --version 0.1.3
#r "nuget: Jumbee.Console.Snapshot, 0.1.3"
#:package Jumbee.Console.Snapshot@0.1.3
#addin nuget:?package=Jumbee.Console.Snapshot&version=0.1.3
#tool nuget:?package=Jumbee.Console.Snapshot&version=0.1.3
Jumbee.Console Snaphshot
About
This is an add-on library for Jumbee.Console that provides headless snapshot testing: render any control or layout to text or PNG without a real terminal.
Getting Started
See GETTING-STARTED.md on the project site, and the project documentation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Jumbee.Console (>= 0.1.3)
- SixLabors.Fonts (>= 2.1.3)
- SixLabors.ImageSharp.Drawing (>= 2.1.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
# Changelog
## 0.1.3
### Changed
- `ConsoleSnapshot.Key(key, …)` now fills in `KeyChar` for letter and digit keys (lowercase, uppercase under Shift, the control char under Ctrl), so a simulated key matches a hotkey registered the natural way (a bare letter). Previously it left `KeyChar='\0'`, so `ToTextAfter(…, routeGlobal: true)` silently failed to fire bare-letter global hotkeys. Non-character keys (arrows, function keys) are unchanged.
### Docs
- Documented that text snapshots (`ConsoleSnapshot.ToText`) don't capture colour or decoration — assert colour with `SavePng`/`ToImage`, or render a visible marker.
- Documented the runtime-reconfiguration pattern on `UI.Layout` (read-only): for a full-screen "zen" toggle, collapse a `SplitPanel` pane via `SplitPosition` or reassign `DockPanel.DockedControl`/`FillControl`, rather than swapping the root.
## 0.1.2
### Added
- `UI.SendInput(target, key, routeGlobal)` — an opt-in overload that runs the global hotkey dispatch (keys registered with `UI.RegisterHotKey`) before routing to the focused control, mirroring the live input path. Backward-compatible; existing calls route straight to the control as before.
- `Jumbee.Console.Snapshot`: `ConsoleSnapshot.RenderAfter` and `ToTextAfter` now accept a `routeGlobal` flag, so a headless snapshot test can exercise an app's global keybindings, not just control-routed input. Build the simulated key the same way the hotkey was registered so it compares equal.
### Changed
- The bundled package README now includes a runnable first-app example and a note about the private Spectre.Console fork: do not also reference the upstream `Spectre.Console` NuGet package (the assembly identities collide and the build fails with `CS1704`).
## 0.1.1
- Initial public release.