TerminalMatrix 1.6.0

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

// Install TerminalMatrix as a Cake Tool
#tool nuget:?package=TerminalMatrix&version=1.6.0                

TerminalPixelMatrixLibrary

An 8-bit video interface emulator. Hope to make it good enough to replace the GUI code in our Altair BASIC emulator, A-BASIC-Language. Place the control on a Windows Forms-window and get events for what the user is typing, or call the Input function to prompt the user. Nuget:

Install-Package TerminalMatrix

Limit text area

When the text area is unlimited, the text terminal displays 25 lines of text. This amount can be limited using the SetTextRenderLimit method. 0 means that text is allowed everywhere, a larger value leaves empty space on the upper part of the screen, and the largest value (23) only allows two lines of text on the bottom of the screen.

Bitmap images

To produce a bitmap image, create a picture (preferably a 16 or 32 color GIF file) using the palette described in the ah-c64-palette.act Photoshop file (or the extended 32 color file). The color palette is also described in the source code, here. Remember that pixels usually are more high then wide, and that the interface emulator only can display 640 * 200 pixels at one time. The default resolution is 320 * 200 rectangular pixels.*

To display an image, load it as a byte array using the LoadPictureFromGif function and draw it using the SetPixels function. Call UpdateBitmap to force the pixel buffer to be displayed.

var gif = terminalMatrixControl1.LoadPictureFromGif(@"..\..\..\..\testgif.gif");
terminalMatrixControl1.SetPixels(0, 0, gif);
terminalMatrixControl1.UpdateBitmap();

The image is a screenshot of the AdventureGameExample projet, a text adventure game dummy.

Text adventure dummy

Limitations

For a clean exit, you must call the Quit method in the FormClosed event handler.

private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
    terminalMatrixControl1.Quit();
}
Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0-windows7.0

    • No dependencies.

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
2.7.2 103 9/26/2024
2.7.1 103 9/6/2024
2.7.0 106 9/6/2024
2.6.0 117 6/23/2024
2.5.0 115 6/19/2024
2.4.0 105 6/16/2024
2.3.0 103 6/15/2024
2.2.0 102 6/5/2024
2.1.0 103 5/19/2024
2.0.0 107 5/19/2024
1.8.0 107 5/18/2024
1.7.0 139 12/31/2023
1.6.0 134 12/21/2023
1.5.0 144 12/15/2023
1.4.0 135 12/15/2023
1.3.0 155 12/14/2023
1.2.0 141 12/13/2023
1.1.0 151 12/12/2023
1.0.0 128 12/12/2023

Multiple resolution and border support.