Answers for "terminal i npyto nwith ansi"

7

python ansi escape sequences color collection

class colors:
    reset = "33[0m"

    # Black
    fgBlack = "33[30m"
    fgBrightBlack = "33[30;1m"
    bgBlack = "33[40m"
    bgBrightBlack = "33[40;1m"

    # Red
    fgRed = "33[31m"
    fgBrightRed = "33[31;1m"
    bgRed = "33[41m"
    bgBrightRed = "33[41;1m"

    # Green
    fgGreen = "33[32m"
    fgBrightGreen = "33[32;1m"
    bgGreen = "33[42m"
    bgBrightGreen = "33[42;1m"

    # Yellow
    fgYellow = "33[33m"
    fgBrightYellow = "33[33;1m"
    bgYellow = "33[43m"
    bgBrightYellow = "33[43;1m"

    # Blue
    fgBlue = "33[34m"
    fgBrightBlue = "33[34;1m"
    bgBlue = "33[44m"
    bgBrightBlue = "33[44;1m"

    # Magenta
    fgMagenta = "33[35m"
    fgBrightMagenta = "33[35;1m"
    bgMagenta = "33[45m"
    bgBrightMagenta = "33[45;1m"

    # Cyan
    fgCyan = "33[36m"
    fgBrightCyan = "33[36;1m"
    bgCyan = "33[46m"
    bgBrightCyan = "33[46;1m"

    # White
    fgWhite = "33[37m"
    fgBrightWhite = "33[37;1m"
    bgWhite = "33[47m"
    bgBrightWhite = "33[47;1m"
Posted by: Guest on July-02-2020

Code answers related to "ActionScript"

Browse Popular Code Answers by Language