Giter Site home page Giter Site logo

caphosra / consoleflow Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 147 KB

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

License: MIT License

C# 98.61% PowerShell 1.39%
cui cli cui-library cli-library console console-library dotnet dotnet-library dotnet-cui csharp

consoleflow's Introduction

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%
//

consoleflow's People

Contributors

caphosra avatar dependabot-preview[bot] avatar

Stargazers

 avatar

Watchers

 avatar

consoleflow's Issues

Make the name of classes shorten

There are HorizontalBox and VerticalBox, which are useful but not readable due to the longer names.
I suggest that we rename HorizontalBox to HBox, VirticalBox to VBox(It's similar to Virtual Box๐Ÿ˜ƒ).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.