https://github.com/caphosra/consoleflow
This is a C#(dotnet) library for making your design of CUI tool better.
https://github.com/caphosra/consoleflow
cli cli-library console console-library csharp csharp-cli csharp-cui csharp-cui-library csharp-library cui cui-library dotnet dotnet-cui dotnet-library
Last synced: 7 months ago
JSON representation
This is a C#(dotnet) library for making your design of CUI tool better.
- Host: GitHub
- URL: https://github.com/caphosra/consoleflow
- Owner: caphosra
- License: mit
- Created: 2019-12-23T01:12:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-01T20:03:15.000Z (over 3 years ago)
- Last Synced: 2025-01-02T04:50:39.922Z (9 months ago)
- Topics: cli, cli-library, console, console-library, csharp, csharp-cli, csharp-cui, csharp-cui-library, csharp-library, cui, cui-library, dotnet, dotnet-cui, dotnet-library
- Language: C#
- Size: 144 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Console Flow - UI for C# Console
[](https://github.com/capra314cabra/ConsoleFlow/actions)
[](https://www.nuget.org/packages/ConsoleFlow/)
[](https://www.nuget.org/packages/ConsoleFlow/)
[](https://github.com/capra314cabra/ConsoleFlow/blob/master/LICENSE)
This is a C#(dotnet) library for making your design of CUI tool better.
## Demo
### Progress bar example

``` C#
// 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%
//
```