BlazorTUI 0.6.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package BlazorTUI --version 0.6.1                
NuGet\Install-Package BlazorTUI -Version 0.6.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="BlazorTUI" Version="0.6.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlazorTUI --version 0.6.1                
#r "nuget: BlazorTUI, 0.6.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.
// Install BlazorTUI as a Cake Addin
#addin nuget:?package=BlazorTUI&version=0.6.1

// Install BlazorTUI as a Cake Tool
#tool nuget:?package=BlazorTUI&version=0.6.1                

BlazorTUI

Blazor Server Text User Interface

Sample

Nuget

Avaliable controls:

  • Label
  • TextBox
  • Button
  • CheckBox
  • RadioButton
  • ListBox
  • GridView
  • Frame
  • Dialog
  • Spinner
  • ProgressBar
  • MessageBox

You can use Tab key to go to next control, Shift+Tab keys to go to previous control, Space to select and cursors keys.

Basic instructions

First create a screen, this must have double width than height

Screen screen = new Screen(80, 40);

On the razor page declare screen tag

<BlazorTUI.BlazorTUI screen=@screen></BlazorTUI.BlazorTUI>

Then create a top container and assign to the screen

Frame frm1 = new Frame("frm1", "FRAME", 13, 4, 56, 29, Frame.BorderStyle.solid, System.Drawing.Color.Cornsilk, System.Drawing.Color.RebeccaPurple);
screen.topContainer.AddContainer(frm1);

Now we can add some containers

Frame frm2 = new Frame("frm2", "CHILD FRAME", 3, 3, 43, 12, Frame.BorderStyle.line, System.Drawing.Color.Yellow, System.Drawing.Color.Green);
frm1.AddContainer(frm2);

And inside every container we can add controls

Label lblName = new Label("lblName", "Name:", 2, 2, 15, System.Drawing.Color.Yellow, System.Drawing.Color.Green);
frm2.AddControl(lblName);
TextBox txtName = new TextBox("txtName", "", 2, 3, 15, System.Drawing.Color.Yellow, System.Drawing.Color.Black);
frm2.AddControl(txtName);
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
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.7.0 94 9/2/2024
0.6.11 109 8/27/2024
0.6.10.1 115 8/24/2024
0.6.10 118 8/23/2024
0.6.9.1 109 8/20/2024
0.6.9 117 8/17/2024
0.6.8 114 8/15/2024
0.6.7 120 8/14/2024
0.6.6 129 8/13/2024
0.6.5 112 8/13/2024
0.6.4 113 8/13/2024
0.6.3 100 8/12/2024
0.6.2 109 8/12/2024
0.6.1 108 8/11/2024
0.6.0 96 7/4/2024
0.5.0 106 6/21/2024