View on GitHub

.NET Consoul

Console interface extensions

Core console APIs

When to use this

Start here whenever you need structured console output or simple input helpers without adopting the view or routine systems. These APIs sit closest to System.Console and can be introduced incrementally into existing apps.

Key types

Minimal example

using ConsoulLibrary;

RenderOptions.DefaultScheme = new ColorScheme(ConsoleColor.White, ConsoleColor.Black);
RenderOptions.InvalidScheme = new ColorScheme(ConsoleColor.White, ConsoleColor.DarkRed);

Consoul.Write("System initialised", RenderOptions.DefaultScheme);
if (!Consoul.Ask("Proceed with deployment?"))
{
    Consoul.Write("Operation canceled", ConsoleColor.Yellow);
    return;
}

string environment = Consoul.Input("Target environment:");
Consoul.Write($"Deploying to {environment}", ConsoleColor.Green);

Advanced tips