ANSI.Console
2.5.0
dotnet add package ANSI.Console --version 2.5.0
NuGet\Install-Package ANSI.Console -Version 2.5.0
<PackageReference Include="ANSI.Console" Version="2.5.0" />
paket add ANSI.Console --version 2.5.0
#r "nuget: ANSI.Console, 2.5.0"
// Install ANSI.Console as a Cake Addin #addin nuget:?package=ANSI.Console&version=2.5.0 // Install ANSI.Console as a Cake Tool #tool nuget:?package=ANSI.Console&version=2.5.0
About
ANSI Console aims to be as developer friendly and easy to use as possible. The reason this library was created is because many of the already existing libraries doesn't provide a good user interface. The main purpose of this library is to fix this, console formatting should be accessible and fun!
Features
- Color formatting using:
System.ConsoleColor
,System.Drawing.Color
, RGB, HEX, Named/known colors (list) and True color (24-bit format with over 16.7 million colors, Wikipedia) - Styles: Bold, Italic, Underlined, Overlined, Strike-through, Inverted, Faint, Opacity, Blink, Uppercase and Lowercase.
- Hyperlinks
- Custom inline formatting method
FormatANSI
. - Chainable formatting methods.
- ANSI initialization for the system console (If not enabled already).
- Builds on-top of the default
Console
usingstring
extension methods. - Mapping methods using generators
- Gradients with unlimited colors
NO_COLOR
No formatting will be applied for systems where console color output has explicitly been requested to be turned off using the environment variable NO_COLOR
. See more information about this initiative at https://no-color.org.
This can be overwritten by setting the ANSIInitializer.Enabled = true
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net5.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on ANSI.Console:
Package | Downloads |
---|---|
Makspll.PathfinderLib
The library behind the Pathfinder CLI with configurable discovery mechanisms. |
|
Azyeb
Package Description |
|
YouReplMe
A lightweight REPL library allowing you to build sentences to invoke actions |
|
NotNot.Bcl
an Extended Base Class Library (BCL) for use in DotNet6+ projects. Generally focused on performance and diagnostics. |
|
Cyrus
(Coming soon...) A modern, minimalistic, NativeAOT-friendly framework for building command-line applications with .NET |
GitHub repositories
This package is not used by any popular GitHub repositories.