Last Updated: 22 September 2020

ANSI colour, formatting and input extensions .Net Core console apps


BUILD STATUS Continuous Integration Build Status



Install-Package ParkSquare.SuperConsole


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


    // 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");