SharpTui.Framework 0.1.1

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

<p align="center"><img src="https://raw.githubusercontent.com/obselate/sharptui/main/docs/banner.gif" alt="sharptui" width="720"></p>

sharptui

<p> <a href="https://github.com/obselate/sharptui/actions/workflows/ci.yml"><img src="https://github.com/obselate/sharptui/actions/workflows/ci.yml/badge.svg" alt="ci"></a> <img src="https://img.shields.io/badge/.NET-10.0-512BD4" alt=".NET 10"> <a href="https://github.com/DavidOBando/gsharp"><img src="https://img.shields.io/badge/G%23-0.4.59-8A2BE2" alt="G#"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-97CA00" alt="MIT"></a> </p>

A small retained-tree TUI framework for G#.

Install

Requires the .NET 10 SDK.

dotnet new install Gsharp.Templates@0.4.59
dotnet new gsharp-console -n MyApp
dotnet add MyApp/MyApp.gsproj package SharpTui.Framework --version 0.1.1
dotnet run --project MyApp/MyApp.gsproj

Example

Replace MyApp/Main.gs with:

package Demo

import SharpTui

func Main(args []string) int32 {
  let root = Column{
    Padding: CellInsets.All(1),
    GapCells: 1,
    Children: {
      Label{ Text: "sharptui" },
      Row{
        GrowWeight: 1,
        Children: {
          Box{ Width: CellLength.Cells(24), ShowBorder: true, Title: "Files" },
          MarkdownView{ GrowWeight: 1, Source: "# Hello" },
        },
      },
    },
  }
  let app = App()
  app.Run(root)
  return 0
}

Escape or Ctrl+C quits.

Documentation

Run the bundled example picker with dotnet run -c Release --project SharpTui.Examples.gsproj. Install its Linux x64 NativeAOT build with ./tools/install-tuitool.

ChatGPT plugin

codex plugin marketplace add obselate/sharptui
codex plugin add sharptui@sharptui

See the privacy policy and terms.

License

MIT. Yoga.Net provenance is recorded in UPSTREAM.md.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 148 9/2/2026
0.1.0 96 8/24/2026