TSharpVision 1.2.0

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

T# Vision

T# Vision is a text-mode UI framework for .NET inspired by Borland Turbo Vision. Build keyboard-driven applications with windows, dialogs, menus and controls, using a Windows console, Linux/macOS terminal, or SDL desktop driver.

Install

Add the core package:

dotnet add package TSharpVision

For an interactive application, add one driver package as well. Each driver brings in the core package:

  • TSharpVision.Drivers.Console — Windows console
  • TSharpVision.Drivers.Terminal — interactive ANSI terminal on Linux or macOS
  • TSharpVision.Drivers.SDL — SDL desktop window on Windows, Linux or macOS

Quick start

This minimal Windows Console application opens a window; Alt+X exits.

dotnet new console -n HelloTSharpVision -f net10.0
cd HelloTSharpVision
dotnet add package TSharpVision.Drivers.Console

Replace Program.cs with:

using System;
using TSharpVision;
using TSharpVision.Constants;
Environment.SetEnvironmentVariable("TSHARPVISION_DRIVER", "Win32ConsoleDriver");
return TSharpVisionRuntime.Run(() => new HelloApp(), "Hello TSharpVision");
sealed class HelloApp : TApplication
{
    public HelloApp()
    {
        var window = new TWindow(new TRect(2, 2, 52, 10), "Hello", Views.wnNoNumber);
        window.Insert(new TStaticText(new TRect(2, 2, 46, 4), "Hello from T# Vision! Alt+X exits."));
        DeskTop.Insert(window);
    }
}

Run dotnet run in an attached Windows console.

Packages

Package Purpose
TSharpVision Core UI framework; includes a headless driver
TSharpVision.Drivers.Console Windows console driver
TSharpVision.Drivers.Terminal Linux/macOS ANSI terminal driver
TSharpVision.Drivers.SDL SDL desktop window drivers
TSharpVision.CodeEditor Syntax-aware code editor components
TSharpVision.HexView Read-only hexadecimal viewer
TSharpVision.TableView Paged table viewer
TSharpVision.Terminal Terminal widget, emulator and sessions
TSharpVision.Graphics Optional pixel graphics views and image preview

Optional pixel graphics

TSharpVision.Graphics is optional and depends only on the core package. GWindow hosts a GView display list of lines, shapes and images; GImage shows a PixelImage fitted or stretched, with nearest or linear sampling. It accepts decoded RGBA8888 pixels, not PNG, JPEG or WebP files: the application decodes them.

  • TSharpVision.Graphics alone, or on the Console, Terminal and Null drivers: the views show a text fallback message instead of pixels.
  • TSharpVision.Graphics + TSharpVision.Drivers.SDL: SDLGpuDriver and SDLDriver draw the pixels. The application references the SDL package itself; neither package depends on the other.

See showing an image in a window.

Command-line tools

The resource compiler, help compiler and resource inspector are .NET tool packages:

Package Command Purpose
TSharpVision.ResourceCompiler svrc Compiles .trc resource scripts into .tvr files
TSharpVision.HelpCompiler svhc Compiles help source text into .hlp files
TSharpVision.ResourceTools svres Lists, shows, dumps and validates .tvr resources
dotnet tool install --global TSharpVision.ResourceCompiler
svrc compile app_en.trc app_en.tvr

See command-line tools.

Documentation

New in 1.2.0

  • TProgram.SetAppPalette switches a running program between the Color, BlackWhite and Monochrome palette families.
  • SDLGpuDriver adds physical palettes (Default, Green, Amber, Grayscale) and one display effect at a time (Scanlines, Glow, Curvature, ShadowMask), set with [graphics] palette= / effect= or at run time. Palettes recolour text colours only, never pixel graphics; other drivers are unaffected.
  • The new optional TSharpVision.Graphics package adds pixel graphics views, shapes and RGBA images (above).
  • Built-in framework translations (cs, de, es, fr, it, pl, sk beside English) with [localization] language= and runtime switching via TSharpVisionIntl.UseBuiltInLanguage.
  • Help search across several help files (THelpCollection), and file dialogs that start in the directory of the last file accepted in an Open dialog, for the rest of the session.
  • The command-line tools svrc, svhc and svres are available as .NET tool packages (above).

All TSharpVision packages, the nine libraries and the three tools, share one version. See the changelog.

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

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on TSharpVision:

Package Downloads
TSharpVision.Drivers.SDL

SDL3 graphical display and input drivers for TSharpVision, including SDL renderer and GPU renderer backends.

TSharpVision.Terminal

xterm-compatible terminal emulator and TTerminal view for TSharpVision, with ConPTY, POSIX PTY and pipe sessions.

TSharpVision.CodeEditor

Syntax-aware code editor components for TSharpVision using TextMate grammars.

TSharpVision.Drivers.Terminal

ANSI/POSIX terminal display and input driver for TSharpVision terminal UI applications.

TSharpVision.TableView

Read-only, paged table view for TSharpVision over any source of rows, with 64-bit row positions.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 0 11/6/2026
1.1.0 187 10/31/2026
1.0.0 208 10/23/2026
1.0.0-rc.4 102 10/20/2026
1.0.0-rc.3 91 10/18/2026
1.0.0-rc.2 102 10/16/2026
1.0.0-rc.1 94 10/10/2026