LoomTerminal.Pty 0.2.0

dotnet add package LoomTerminal.Pty --version 0.2.0
                    
NuGet\Install-Package LoomTerminal.Pty -Version 0.2.0
                    
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.Pty" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LoomTerminal.Pty" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="LoomTerminal.Pty" />
                    
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.Pty --version 0.2.0
                    
#r "nuget: LoomTerminal.Pty, 0.2.0"
                    
#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.Pty@0.2.0
                    
#: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.Pty&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=LoomTerminal.Pty&version=0.2.0
                    
Install as a Cake Tool

LoomTerminal.Pty

Pseudo terminal for LoomTerminal: Windows ConPTY (macOS and Linux planned), Native AOT-compatible.

Install

dotnet add package LoomTerminal.Pty --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.

Usage

using LoomTerminal.Pty;

ShellInfo shell = Shells.Detect()[0];                     // PowerShell 7, Windows PowerShell, Git Bash, cmd, WSL…
using IPtyConnection pty = PseudoTerminal.Start(new PtyStartOptions(shell.CommandLine)
{
    Columns = 120,
    Rows = 30,
    Environment = new Dictionary<string, string?> { ["TERM_PROGRAM"] = "MyApp" },
});

pty.Write("dir\r"u8);
await foreach (byte[] chunk in pty.Output.ReadAllAsync()) { /* VT bytes for the emulator */ }

Supported platforms

  • Windows 10 1809 and later (ConPTY).
  • macOS and Linux (openpty): planned.

Source and documentation: https://github.com/adgranger/LoomTerminal

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.
  • net11.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on LoomTerminal.Pty:

Package Downloads
LoomTerminal.Presentation

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

GitHub repositories

This package is not used by any popular GitHub repositories.

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