ANSI Colour, Formatting & Input Extensions For .Net Core Console Apps

ParkSquare.SuperConsole

BUILD STATUS Continuous Integration Build Status

;;

INSTALLATION

Install-Package ParkSquare.SuperConsole

DESCRIPTION

Console window extensions for collecting user input and enhanced display features.

Documentation


    // Get password from user, using asterisk as the mask character

    var password1 = ReadPassword('*');
    var password2 = ReadPassword("Enter your password");

    // Get an optional value from user

    var inputValue = ReadOptionalLine("Enter something", "this is the default value");

    // Get a mandatory value from user (will loop until something is entered)

    var inputValue = ReadMandatoryLine("Enter something");

    // Write to console with formatting to display an error 

    WriteErrorLine("This displays an error");

    // Write to console with highlight formatting 

    WriteHighlighted("Something highlighted");