Skip to content

An easy to use console for writing colorful text - designed for .NET Core

License

Notifications You must be signed in to change notification settings

developer82/FluentColorConsole

Repository files navigation

Fluent Color Console

An easy to use console for writing colorful text - designed for .NET Core


Fluent Color Console

Build status

Installation

This library is available as a NuGet package at https://www.nuget.org/packages/FluentColorConsole/

Package Manager Console:

Install-Package FluentColorConsole

Dotnet CLI:

dotnet add package FluentColorConsole

Usage

Using Fluent Color Console is very easy. First, just include FluentColorConsole:

using FluentColorConsole;

Now lets have a look at some examples:

// Green text on default console background color
ColorConsole.WithDarkGreenText.WriteLine("Hello World!");

// Default text on Blue background color
ColorConsole.WithBlueBackground.WriteLine("Hello World!");

// Background first - White text on Blue background
ColorConsole.WithDarkBlueBackground.AndWhiteText.Write("I'm a color console library ");

// Text first - White text on Red background
ColorConsole.WithWhiteText.AndRedBackground.WriteLine("And I helped write myself :)");

// Default Console colors
Console.WriteLine("You can read more about me at https://github.com/developer82/FluentColorConsole");

About

An easy to use console for writing colorful text - designed for .NET Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages