Skip to content

A very simple class library that provides short-hand colored output

License

Notifications You must be signed in to change notification settings

rmckirby/ColorConsole

Repository files navigation

ColorConsole

GitHub license

A very simple class library to aid in printing coloured output to the console.

Build Status

.Net Mono
master Build status Build Status
develop Build status Build Status

How?

The public API is small. Simply create an instance of ConsoleWriter:

using System;
using ColorConsole;
...

var console = new ConsoleWriter();

and invoke the method of your choice:

console.Write("Be seeing you!", ConsoleColor.Yellow);
Best Practices

Ideally, you should rely on the IConsoleWriter type. This interface can then be used in conjunction with your favourite DI framework.

Why?

The main motivation was to reduce the typical boilerplate code involved to output colored text to the console. Quite often, you would see console applications defining/duplicating this behaviour in their own assembly each time it was required.

Where?

The easiest way to install ColorConsole is via Paket or Nuget.

Paket

Assuming your project has paket.exe under .paket/paket.exe

Mono:

mono .paket/paket.exe add nuget ColorConsole

.Net

.paket/paket.exe add nuget ColorConsole

Nuget

Install-Package ColorConsole

To Build

Acquire the source code.

bash build.sh

Or if you don't have access to a bash env:

build.cmd

Credits

Logo credit to deadletterdesign

About

A very simple class library that provides short-hand colored output

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •