edokan / Edokan.KaiZen.Colors

A simple rewrite of colors module of node in C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Edokan.KaiZen.Colors

A simple rewrite of colors module of node in C#

Includes a dummy escape sequence parser for interpreting ANSI escape codes (colors only)

Here is a basic example

    using Edokan.Kaizen.Colors;

    namespace MyAwesomeConsoleApplication
    {
      public class Program
      {
        static void Main()
        {
          EscapeSequencer.Install(); // Install sequence parse
          EscapeSequencer.Bold = true; // I like bright colors
    
          Console.WriteLine("INFO: ".Yellow() + "Hello".Red() + ", " + "World.".Blue());
          Console.WriteLine("This is zebra".Zebra());
          Console.WriteLine("This is rainbow".Rainbow());
          Console.ReadLine();
        }
      }
    }

About

A simple rewrite of colors module of node in C#


Languages

Language:C# 100.0%