DeBlasis.GhosttyVt 1.3.2-ci.202606240454.4789bbdb

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

DeBlasis.GhosttyVt

Unofficial .NET bindings for libghostty-vt — the standalone virtual terminal parser extracted from the Ghostty terminal emulator.

Use this package to parse VT escape sequences, inspect the terminal grid, encode keyboard/mouse input, and embed a terminal engine in any .NET application — without pulling in the full Ghostty GUI.

This is a community port. It is not affiliated with, endorsed by, or maintained by the Ghostty project or Mitchell Hashimoto.

Install

dotnet add package DeBlasis.GhosttyVt

Native runtimes for win-x64, linux-x64, and osx-arm64 are bundled — no extra setup.

Quick example

using Ghostty.Vt;

// Create an 80x24 terminal
using var terminal = new Terminal(80, 24);

// Feed it VT sequences (e.g. output captured from a PTY)
terminal.VTWrite("\x1b[31mHello, \x1b[1mWorld!\x1b[0m");

// Inspect the rendered grid
using var renderState = new RenderState();
terminal.UpdateRenderState(renderState);

foreach (var row in renderState.Rows)
{
    foreach (var cell in row.Cells)
    {
        // cell.Codepoint, cell.Style, cell.Foreground, cell.Background, ...
    }
}

What's in the box

Type Purpose
Ghostty.Vt.Terminal Create terminals, write VT sequences, read state
Ghostty.Vt.RenderState Inspect the screen grid — rows, cells, colors, cursor
Ghostty.Vt.KeyEncoder Encode keyboard events into VT escape sequences
Ghostty.Vt.MouseEncoder Encode mouse events into VT sequences
Ghostty.Vt.OscParser Parse OSC (Operating System Command) sequences
Ghostty.Vt.SgrParser Parse SGR (Select Graphic Rendition) attributes
Ghostty.Vt.Formatter Format grid content as plain text, HTML, or VT
Ghostty.Vt.KittyGraphics Query Kitty image-protocol placements
Ghostty.Vt.GridRef Reference and compare grid positions
Ghostty.Vt.Focus Focus reporting
Ghostty.Vt.Paste Bracketed paste encoding

Supported platforms

Platform Runtime ID Native library
Windows x64 win-x64 ghostty-vt.dll
Linux x64 (glibc 2.31+) linux-x64 libghostty-vt.so
macOS ARM64 osx-arm64 libghostty-vt.dylib

Target framework: net9.0. AOT-compatible. P/Invoke via LibraryImport (source-generated).

Versioning

Package versions track the upstream Ghostty version they were built against. Pre-release builds (*-ci.{timestamp}.{sha}) are produced by a daily sync workflow that rebuilds against the latest ghostty-org/ghostty@main.

The ghostty-upstream.json file in the repository pins the exact upstream commit each release was cut from.

License

MIT — see LICENSE. Ghostty itself is also MIT-licensed.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.