/HACC

HACC (HTML5 ANSI Console Canvas) - Blazor WebAssembly component to enable console code to run in a browser

Primary LanguageC#MIT LicenseMIT

HACC

C# DotNet 6 HTML ANSI Console Canvas.

  • Contains a virtual terminal character buffer with text and appearance kept separately.
  • Contains a HTML component that renders the character buffer contents.
  • Contains driver code to create a System.Console compatible ANSI Console on an HTML5 Canvas.
  • Was formerly using the BlazorExtensions/Canvas project, which has been somewhat stagnant.
    • We absorbed the library, also under MIT license, and brought it up to .net 6 and newer typescript, webpack and other npm libraries.
    • We're about to bring in some of the other improvements other forks had developed but not merged into the stagnant project.

Beta!

Lots of demos!

Features

  • Builtin PNG frame-grabber
    • Can be triggered manually in console mode with window.canvasToPNG() which returns a data string with the frame at the time.
    • Can be integrated into an app with JSInterop calls such that the console application can have a "save to png" option, etc
    • image

Tests

Development

Future

  • Terminal.Gui v2 / DotNet v7 support
  • Spectre.Console driver

About

This project was built and is maintained by the Digital Defiance (GitHub page) - a group of like-minded engineers working together to improve the world and have fun in the process.