/TWidgets

A Text-based widget framework for terminal applications.

Primary LanguageC#MIT LicenseMIT

TWidgets

TWidgets is a framework for building text-based widgets that can be displayed in the console.

It already implement a collection of Twidgets to start with. If they're not enought, you can build your own Twidgets in a few steps.

Input TWidgets are available for scenarios where you need user interaction.

Give it a try and share your experience.


Quick Install

Package Manager:

PM> Install-Package Twidgets

>> See more installation options


Quick Start

Example: Drawing a simple marquee presentation.

using Twidgets;

class Program
{
    static void Main(string[] args){
        var twidget=new Marquee("demo");

        twidget.Items = new string[] {
            "Welcome to Twidgets",
            "<Get Started>"
        };
        
        Player.Mount(twidget);
    }
}

Output:

┌─────────────────────────────┐
│     Welcome to TWidgets     │
│        <Get Started>        │
└─────────────────────────────┘

>> See more on Get Started


Project References

Related Projects