Skip to content

This is a C#(dotnet) library for making your design of CUI tool better.

License

Notifications You must be signed in to change notification settings

caphosra/ConsoleFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Console Flow - UI for C# Console

Badge Nuget Downloads License

Icon

This is a C#(dotnet) library for making your design of CUI tool better.

Demo

Progress bar example

ProgressDemo

// using System;
// using System.Threading.Tasks;
// using ConsoleFlow;

//
// Create ProgressBar components.
//
var firstProgress = new ConsoleProgress(title: "ConsoleProgress", length: 50);

var secondProgress = new SimpleProgress(title: "SimpleProgress", length: 50);

//
// Attach them to ConsoleFlow.
//
var flow = new ConsoleFlow
(
    firstProgress,
    secondProgress
);

//
// Print contents to the terminal.
//
flow.Display();

//
// Change the value of ProgressBar.
// And you will see the components are changed corresponding to the value.
//
// Example:
//
// firstProgress.Value = 0.5f; // 50%
//