LoomTerminal.Presentation 0.1.0-alpha.2

This is a prerelease version of LoomTerminal.Presentation.
There is a newer version of this package available.
See the version list below for details.
dotnet add package LoomTerminal.Presentation --version 0.1.0-alpha.2
                    
NuGet\Install-Package LoomTerminal.Presentation -Version 0.1.0-alpha.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LoomTerminal.Presentation" Version="0.1.0-alpha.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LoomTerminal.Presentation" Version="0.1.0-alpha.2" />
                    
Directory.Packages.props
<PackageReference Include="LoomTerminal.Presentation" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LoomTerminal.Presentation --version 0.1.0-alpha.2
                    
#r "nuget: LoomTerminal.Presentation, 0.1.0-alpha.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LoomTerminal.Presentation@0.1.0-alpha.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LoomTerminal.Presentation&version=0.1.0-alpha.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=LoomTerminal.Presentation&version=0.1.0-alpha.2&prerelease
                    
Install as a Cake Tool

LoomTerminal.Presentation

UI-independent presentation layer of LoomTerminal: render model, input encoding, selection.

Install

dotnet add package LoomTerminal.Presentation --prerelease

--prerelease is needed while the version has a suffix (for example 0.1.0-alpha.1).

Most applications want LoomTerminal.WinUI, which brings the other packages.

The part of the control that every UI backend shares. A backend (WinUI 3, Avalonia) only (1) forwards its input events as the types defined here, (2) implements the backend interfaces and (3) calls FrameRenderer.Render once per frame.

Usage

using var session = TerminalSession.Start(new PtyStartOptions("pwsh.exe") { Columns = 80, Rows = 24 });
CellMetrics metrics = measurer.Measure(font, rasterizationScale);   // ITextMeasurer, implemented by the backend

session.FrameAvailable += () => RequestRender();                     // parser thread: marshal to the UI thread
// UI thread, in the per-frame callback:
if (session.TryTakeFrame() is { } frame)
{
    FrameRenderer.Render(frame, metrics, surface);                   // IRenderSurface, implemented by the backend
}

session.SendText("echo hi\r");

Contents of the package

Folder Content
Session/ TerminalSession (parser thread, pty, frames, selection, search, clipboard, accessibility), TerminalSessionOptions
Input/ key and pointer event models, VT key encoding, mouse reports, paste, IClipboard
Theming/ TerminalTheme and the color resolution (palette, OSC overrides, minimum contrast)
Rendering/ RenderFrame model, ITextMeasurer, IRenderSurface, FrameRenderer, cursor blink
Selection/, Search/, Viewport/, Links/ selection logic, search engine, scrolling and wheel, link detection (ILinkHandler)

Threading: the parser thread owns the emulator; the UI thread only takes immutable RenderFrame snapshots and calls the thread-safe methods of TerminalSession. Events are raised on the parser thread.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on LoomTerminal.Presentation:

Package Downloads
LoomTerminal.WinUI

LoomTerminal: a native, Native AOT-compatible terminal control for WinUI 3 (no WebView2).

LoomTerminal.Avalonia

LoomTerminal: a native, Native AOT-compatible terminal control for Avalonia (Skia, no web view).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 1,350 11/5/2026
0.1.0-alpha.2 392 10/26/2026
0.1.0-alpha.1 106 10/23/2026