Icod.Terminal
1.16.0
See the version list below for details.
dotnet add package Icod.Terminal --version 1.16.0
NuGet\Install-Package Icod.Terminal -Version 1.16.0
<PackageReference Include="Icod.Terminal" Version="1.16.0" />
<PackageVersion Include="Icod.Terminal" Version="1.16.0" />
<PackageReference Include="Icod.Terminal" />
paket add Icod.Terminal --version 1.16.0
#r "nuget: Icod.Terminal, 1.16.0"
#:package Icod.Terminal@1.16.0
#addin nuget:?package=Icod.Terminal&version=1.16.0
#tool nuget:?package=Icod.Terminal&version=1.16.0
Icod.Terminal

Icod.Terminal is a managed, cross-platform live-terminal session and terminal-control library for .NET. It sits between immutable terminal capability data from Icod.TermInfo and higher-level consumers such as Icod.DCurses, terminal-aware command-line tools, monitors, editors, pagers, and REPLs.
Status
Current release line: Icod.Terminal 1.16.0.
Version 1.16.0 adds resource-owned persistent-raster animation with opaque root and appended full-size frame tokens, positive per-frame timing, explicit selection, loading-mode streaming, finite/indefinite terminal-driven playback, independent sequence-certainty observation, and resource-owned cleanup.
The stable 1.0.0 compatibility floor remains unchanged. Version 1.16 retains the complete 1.15 virtual-placeholder, 1.14 lifecycle-observation, 1.13 relative-placement, 1.12 crop/z-order, and earlier persistent-raster contracts. The final 1.16 public API fingerprint is d2acfa85aad87c739b3f682096d4d7139627f12bc9d8981b65529eeb79a2da8d.
The 1.16 stable candidate passed the complete Staging qualification matrix on Windows, Linux, and macOS, including package/API/XML verification, fresh package-only consumers, stable-package checks, validated artifacts, and Icod.DCurses downstream acceptance. Merge, tagging, release creation, and publication remain separate maintainer actions.
Support the Project
Icod.Terminal and its ecosystem packages (Icod.TermInfo and Icod.DCurses) are built and maintained by a solo developer. If these packages save you or your team time, please consider supporting their continued development and maintenance.
Architecture
Icod.Terminal is the live-session layer of the Icod terminal stack:
higher-level terminal applications
|
Icod.DCurses
|
Icod.Terminal
|
Icod.TermInfo
|
terminal / console
Icod.TermInfoowns immutable terminal capability data, compiled terminfo acquisition, and capability expansion.Icod.Terminalowns the live terminal conversation: endpoint observation, native modes, input decoding, lifecycle, active queries, semantic events, capability evidence/planning, semantic output, raster execution, persistent raster resource/placement/placeholder/animation ownership, and reversible/scoped terminal state.Icod.DCursesowns higher-level cells, windows, pads, retained presentation state, layout, clipping, scrolling, refresh/diff policy, damage, and curses-style interaction abstractions.- PTY/process hosting remains orthogonal to the
Icod.Terminalruntime contract.
The direct production dependency graph is intentionally small:
Icod.Terminal
├── Icod.TermInfo 1.14.0
└── Icod.Timing 1.0.0
Icod.TermInfo.Inspection 1.14.0 is used only by optional integration tests and samples. It is not a production dependency of Icod.Terminal. Its raster-backend planner remains caller-side advisory policy rather than part of Terminal's production router.
See docs/Architecture.md for the permanent architecture contract.
Quick Start
Install the package:
dotnet add package Icod.Terminal --version 1.16.0
Open a managed terminal session, write application text, and read through the authoritative event path:
using Icod.Terminal;
await using TerminalSession session = await TerminalSession.OpenAsync(
new TerminalSessionOptions {
InputMode = TerminalInputMode.CBreak,
EchoInput = false
}
);
await session.WriteTextAsync( "Terminal session ready.\r\n" );
TerminalEvent terminalEvent = await session.ReadEventAsync(
TimeSpan.FromSeconds( 1 )
);
A live TerminalSession owns the authoritative input reader for its transport. Use ReadEventAsync(...) and the typed query APIs rather than introducing a competing Console.Read* or stream reader on the same terminal conversation.
For curses-style cells, windows, layout, clipping, scrolling, and refresh/damage policy, prefer Icod.DCurses rather than rebuilding those responsibilities directly over TerminalSession.
Feature Inventory
The root README describes the current product by capability rather than by the release in which each feature first appeared.
- Live terminal session and lifecycle — terminal endpoint observation; native terminal-mode capture/mutation; deterministic session disposal; lifecycle invalidation; scoped/reversible state where exact restoration is supportable.
- Unified input and events — one authoritative reader for text, keys, bracketed paste, focus, mouse, lifecycle observations, active query responses, and unsolicited protocol-neutral semantic events.
- Typed terminal queries — bounded cursor, status, style, color, clipboard, notification, pointer, and related observations integrated with the same input/query authority.
- Semantic capability planning — side-effect-free
InspectCapability(...), explicit boundedVerifyCapabilityAsync(...), separate support/evidence/endpoint-availability state, and no terminal-brand heuristics as capability truth. - Semantic terminal output — application text, titles, current location, hyperlinks, clipboard operations, notifications, cursor style, synchronized output, progress, pointer shape, prompt/shell metadata, and terminal color operations.
- Reversible presentation state — scoped ownership for terminal features whose prior state can be observed truthfully and restored deterministically.
- Backend-neutral ephemeral raster display — bounded
TerminalRasterImagedata with verified Sixel and Kitty Graphics routing behind one semanticDisplayRasterAsync(...)surface. - Persistent raster ownership — opaque terminal-resident resources and placements; source-pixel cropping; signed z-order; immutable-parent relative placement; generation-scoped ownership; deterministic descendant-first cleanup; no hidden raster replay.
- Persistent ownership observation — atomic
Current,Stale,Released, andDisposedsnapshots with semantic loss/release reasons and no passive terminal-side existence fiction. - Unicode raster placeholders — opaque virtual placements, semantic row/column cell tokens, self-contained current-cursor output, and physical placement relative to a virtual parent without exposing Kitty numeric identities or placeholder encoding.
- Persistent raster animation — one resource-owned controller, opaque root/appended frame tokens, exact positive timing, selection, loading-mode streaming, finite/indefinite playback, bounded sequence tracking, and no hidden source-frame replay.
- Optional TermInfo planning integration — consumer-owned lifecycle, placement, runtime-evidence, and raster-backend planning through
Icod.TermInfo.Inspectionwithout widening the production dependency graph or transferring live routing authority away from Terminal.
Raster Ownership at a Glance
The current persistent-raster ownership model is:
TerminalRasterResource
|
+-- TerminalRasterPlacement
| ordinary or relative physical placement
|
+-- TerminalRasterPlaceholder
| virtual placement
| |
| +-- TerminalRasterPlaceholderCell
| semantic text-grid token
|
+-- TerminalRasterAnimation
resource-owned frame sequence
|
+-- TerminalRasterAnimationFrame
opaque known-frame token
Portable ownership bounds are explicit:
live persistent resources 256
physical + virtual placements 4096
relative-placement depth 8
placeholder rows 1..256
placeholder columns 1..256
session-wide known animation frames, roots 4096
Placeholder cell output is current-cursor text output. Animation changes the current pixels of the same resource without creating another placement graph. Terminal owns protocol-private image/placement/frame identity and encoding; the caller owns screen coordinates, clipping, scrolling, redraw order, damage, layout, and higher-level animation policy.
See docs/Persistent-Raster-Ownership.md for lifecycle, capacity, failure, cleanup, relative-placement, and placeholder guarantees.
Platforms and Targets
The package targets:
net8.0
net9.0
net10.0
The repository uses C# 13. Release qualification covers Windows, Linux, and macOS.
Icod.Terminal is a managed library but intentionally uses native platform facilities where terminal modes or console behavior require them. Protocol and feature availability still depends on the terminal endpoint attached to the process; operating-system identity or terminal brand is not treated as sufficient support proof.
Design Boundaries and Guarantees
- One live session owns one authoritative terminal input/query/event conversation; features do not install competing readers.
- Static terminal-description evidence and generation-scoped live evidence remain distinct. Timeout or silence does not automatically become
Unsupportedtruth. - Public APIs describe semantic operations rather than exposing generic raw CSI/DCS/OSC/APC vendor dispatch or caller-manufactured graphics identities.
- Capability routing is evidence-driven rather than terminal-brand driven. Ordinary raster, persistent raster, Unicode-placeholder, and persistent-animation capabilities remain distinct.
- Persistent resources, physical placements, virtual placeholders, animations, and frame tokens are generation-scoped terminal-resident ownership, not exactly restorable state. The library does not retain hidden source images or frames for automatic replay/re-upload.
- Committed graphics operations do not intentionally truncate after commitment. Transport/protocol failure is surfaced without blind replay or speculative backend switching.
- Terminal-controlled responses and unsolicited reports are external input. Correlation grants routing ownership, not authenticity or trust.
- Graphics, parser, query, event, registry, placeholder, and protocol work is explicitly bounded.
- File, temporary-file, and shared-memory Kitty transfers are not silently selected for persistent ownership; the reviewed persistent path uses direct terminal transfer.
Icod.Terminaldoes not own higher-level cells, windows, virtual-screen state, scene composition, clipping, damage, scrolling, or layout. Those concerns belong above the live-session layer, normally inIcod.DCurses.- PTY/ConPTY child-process hosting, terminal emulation, image-file decoding/transcoding, and process ownership remain separate concerns.
Security and privacy details are maintained in docs/Security-and-Privacy.md.
Samples and Documentation
The samples directory contains focused examples for session construction, rich input, bounded queries, semantic capability planning, terminal colors and reversible state, notifications and metadata, backend-neutral raster display, persistent raster ownership, Unicode raster placeholders, persistent raster animation, and optional TermInfo planning integration.
Recommended documentation entry points:
docs/releases/1.16.0.md— curated 1.16 release notes;CHANGELOG.md— release-by-release feature history;docs/Architecture.md— permanent layer and ownership boundaries;docs/Persistent-Raster-Ownership.md— persistent resource, physical/virtual placement, lifecycle, animation, and frame-sequence contract;samples/Icod.Terminal.RasterAnimation.Sample— backend-neutral 1.16 animation walkthrough;docs/Capability-Inspection-and-Planning.md— semantic capability evidence and verification model;docs/Input-and-Events.md— authoritative input/event routing;docs/Queries-and-Responses.md— bounded query/response ownership and correlation;docs/Presentation-and-Reversible-State.md— reversible/scoped terminal state;docs/Security-and-Privacy.md— trust, disclosure, and protocol-security boundary;docs/Compatibility-and-Versioning.md— stable 1.x compatibility and release policy;docs/Migration-to-1.0.md— guidance for pre-1.0 consumers;docs/Public-API-Baseline-1.16.md— final 1.16 API additions and fingerprint;Icod.Terminal-Development-Roadmap.md— current and longer-range development direction.
Release notes, public-API baselines, tranche records, implementation plans, and historical roadmaps remain in the repository as engineering evidence. They are intentionally not repeated in this README.
Compatibility and Versioning
Stable 1.0.0 remains the compatibility floor. The package supports net8.0, net9.0, and net10.0; compatible 1.x releases add semantic capabilities and public members without silently repurposing established signatures, enum values, lifecycle guarantees, or protocol-neutral behavior.
The final 1.16 public API fingerprint is:
d2acfa85aad87c739b3f682096d4d7139627f12bc9d8981b65529eeb79a2da8d
Public API, package, target-framework, release-qualification, and compatibility policy is maintained in docs/Compatibility-and-Versioning.md. Consumers upgrading from the pre-1.0 line should also review docs/Migration-to-1.0.md.
This README is maintained as a current product and contributor entry point. Release-by-release chronology belongs in CHANGELOG.md, curated release notes, versioned roadmaps, public-API baselines, and release audits rather than accumulating here.
Authors
Inspired by original work from Bill Joy, author of the original termcap; Mary Ann (born Mark) Horton, author of terminfo; Pavel Curtis, author of pcurses; and Zeyd Ben-Halim, Eric S. Raymond, and Thomas Dickey, whose work developed and maintained libtinfo and ncurses.
Managed .NET implementation by Timothy J. Bruce uniblab@hotmail.com.
Copyright
Copyright (c) 2026 Timothy J. Bruce
License
Icod.Terminal is licensed under the GNU Lesser General Public License, version 3 or later. Sample applications are licensed under the GNU General Public License, version 3 or later, as stated in their source headers.
See LICENSE and the per-project/source declarations for the applicable terms.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. 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 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
- Icod.TermInfo (>= 1.14.0)
- Icod.Timing (>= 1.0.0)
-
net8.0
- Icod.TermInfo (>= 1.14.0)
- Icod.Timing (>= 1.0.0)
-
net9.0
- Icod.TermInfo (>= 1.14.0)
- Icod.Timing (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Icod.Terminal:
| Package | Downloads |
|---|---|
|
Icod.DCurses
Managed, cross-platform curses-style terminal UI library for .NET with retained text and mixed-media presentation, panels, layout, and deterministic interaction routing. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.18.0 | 152 | 9/18/2026 |
| 1.17.1 | 48 | 9/18/2026 |
| 1.17.0 | 49 | 9/18/2026 |
| 1.16.0 | 48 | 9/17/2026 |
| 1.15.0 | 875 | 9/15/2026 |
| 1.14.0 | 103 | 9/14/2026 |
| 1.13.0 | 874 | 9/13/2026 |
| 1.12.0 | 263 | 9/13/2026 |
| 1.11.1 | 534 | 9/12/2026 |
| 1.11.0 | 98 | 9/12/2026 |
| 1.10.0 | 106 | 9/11/2026 |
| 1.9.0 | 582 | 9/10/2026 |
| 1.8.1 | 505 | 9/10/2026 |
| 1.8.0 | 106 | 9/10/2026 |
| 1.7.0 | 113 | 9/9/2026 |
| 1.6.0 | 701 | 9/9/2026 |
| 1.5.0 | 281 | 9/9/2026 |
| 1.4.0 | 621 | 9/9/2026 |
| 1.3.0 | 105 | 9/9/2026 |
| 1.2.0 | 107 | 9/9/2026 |
Icod.Terminal 1.16.0 adds resource-owned persistent-raster animation with opaque root/appended frame tokens, acknowledged full-frame transfer, positive timing, explicit selection, loading-mode streaming, finite/indefinite playback, bounded sequence certainty, and deterministic resource-owned cleanup without exposing protocol frame identity. Release notes: https://github.com/uniblab/Icod.Terminal/blob/main/docs/releases/1.16.0.md. Compatibility policy: https://github.com/uniblab/Icod.Terminal/blob/main/docs/Compatibility-and-Versioning.md.