SharpTui.Framework
0.1.1
dotnet add package SharpTui.Framework --version 0.1.1
NuGet\Install-Package SharpTui.Framework -Version 0.1.1
<PackageReference Include="SharpTui.Framework" Version="0.1.1" />
<PackageVersion Include="SharpTui.Framework" Version="0.1.1" />
<PackageReference Include="SharpTui.Framework" />
paket add SharpTui.Framework --version 0.1.1
#r "nuget: SharpTui.Framework, 0.1.1"
#:package SharpTui.Framework@0.1.1
#addin nuget:?package=SharpTui.Framework&version=0.1.1
#tool nuget:?package=SharpTui.Framework&version=0.1.1
<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 | Versions 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. |
-
net10.0
- Yoga.Net (>= 3.2.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.