This documentation is only for v3 (old version). See latest version.
The rich user interface console controls of cmd
.
This library targets .NET 6, .NET 5, .NET Core 3.1, .NET Standard 2.0, .NET Framework 4.6.1 and .NET Framework 4.8.
You can install the package from NuGet to your project by following way.
PM > Install-Package Trivial.Console
Or you can also clone the repository to build and add the reference to your project.
Then add following namespace to your code file to use.
using Trivial.Console;
- Selection You can write a selection to the standard output stream so that use can use arrow key and other keys to select the item.
- Progress You can write a progress bar to the standard output stream to show a status value update.
- Line You can write a temporary line to the standard output stream and update it later when need before the line terminator.
Following is other feature for v3 which has migrated to Trivial.CommandLine
namespace since v4.
- Arguments An instance provided a way to access values from the arguments and dispatch the command verbs.
Following is the tutorial in Chinese Simplified.