TSharpVision.Drivers.Terminal
1.3.0
dotnet add package TSharpVision.Drivers.Terminal --version 1.3.0
NuGet\Install-Package TSharpVision.Drivers.Terminal -Version 1.3.0
<PackageReference Include="TSharpVision.Drivers.Terminal" Version="1.3.0" />
<PackageVersion Include="TSharpVision.Drivers.Terminal" Version="1.3.0" />
<PackageReference Include="TSharpVision.Drivers.Terminal" />
paket add TSharpVision.Drivers.Terminal --version 1.3.0
#r "nuget: TSharpVision.Drivers.Terminal, 1.3.0"
#:package TSharpVision.Drivers.Terminal@1.3.0
#addin nuget:?package=TSharpVision.Drivers.Terminal&version=1.3.0
#tool nuget:?package=TSharpVision.Drivers.Terminal&version=1.3.0
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 consoleTSharpVision.Drivers.Terminal— interactive ANSI terminal on Linux or macOSTSharpVision.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.Graphicsalone, or on the Console, Terminal and Null drivers: the views show a text fallback message instead of pixels.TSharpVision.Graphics+TSharpVision.Drivers.SDL:SDLGpuDriverandSDLDriverdraw 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.3.0
The Unicode text release: text is laid out by Unicode 16.0 grapheme cluster (wide CJK and emoji, combining marks, ZWJ sequences), drivers report IDriver.TextCapabilities, and the editor adds multi-level Undo/Redo (Ctrl+Z, Ctrl+Y), Select All, UTF-16 files and a prompt for mixed line endings. The AppContext switch TSharpVision.Text.LegacyCellWidth restores the 1.2 cell widths. Unicode data notices are in THIRD-PARTY-NOTICES.md at the package root (repository source: resources/licences/THIRD-PARTY-NOTICES.md). Borland C++ provenance and the original archive notices accompany them in BORLAND-TURBO-VISION-NOTICE.md, BORLAND-README.txt and BORLAND-DISCLAIMER.txt. Native deployment requirements and qualification limits are described in the platform support guide.
New in 1.2.0
TProgram.SetAppPaletteswitches a running program between the Color, BlackWhite and Monochrome palette families.SDLGpuDriveradds 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.Graphicspackage 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 viaTSharpVisionIntl.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,svhcandsvresare available as .NET tool packages (above).
All TSharpVision packages, the nine libraries and the three tools, share this version. See the changelog.
| 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
- TSharpVision (>= 1.3.0)
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 |
|---|---|---|
| 1.3.0 | 53 | 11/21/2026 |
| 1.2.0 | 175 | 11/6/2026 |
| 1.1.0 | 166 | 10/31/2026 |
| 1.0.0 | 143 | 10/23/2026 |
| 1.0.0-rc.4 | 76 | 10/20/2026 |
| 1.0.0-rc.3 | 69 | 10/18/2026 |
| 1.0.0-rc.2 | 77 | 10/16/2026 |
| 1.0.0-rc.1 | 74 | 10/10/2026 |