Productivity Tools

Tools written by an IT business manager, a passionate developer.

ConsoleColors

The library allows writing to console strings in different colors.

To use it you need to create ConsoleColor object which will contain string and color in which you would like to print it. When you will add all text you need to invoke ConsoleColor.WriteInColor static method.

Below simple test of printing all possible colors to the cmd.

var text = new ColorString(); for (byte i = 0; i < 255; i++) {     text.Add(new ColorStringItem(i.ToString().PadLeft( 10,' '),15));     text.Add(new ColorStringItem(" XXXX", i)); }  ConsoleColor.WriteInColor(text);

Console Colors Tester