Skip to content
A very simple class library that provides short-hand colored output
C# F# Shell Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.paket
ColorConsole.Test Updated dependencies. Oct 14, 2015
ColorConsole Upped version to 1.0.1 Aug 21, 2015
nugets
.gitignore Added code coverage tools. These are only run in a non Mono environment. Oct 15, 2015
.travis.yml Remove pointless before_install commands in .travis.yml. Oct 15, 2015
CHANGELOG.md
License.txt
README.md Fix travis links & remove redundant lines from README.md Dec 8, 2017
appveyor.yml Remove appveyor configuration. Currently hard-coded to Release in bui… Aug 21, 2015
build.cmd Added appveyor.yml and build.cmd Aug 20, 2015
build.fsx
build.sh
logo.png
paket.dependencies Added code coverage tools. These are only run in a non Mono environment. Oct 15, 2015
paket.lock

README.md

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

You can’t perform that action at this time.