CLI Colors

To develop beautiful Command-Line tools, SRON provides you certain keywords which can be used to color/design the text and background color.

There are around 41 keywords provided by SRON:

1) CLI_DESIGN_BOLD: used to write the text in bold style. 2) CLI_DESIGN_DIM: used to write the the text in dim style. 3) CLI_DESIGN_RESET: used to reset the applied colors/designs. 4) CLI_DESIGN_ITALIC: used to write the text in italic style. 5) CLI_DESIGN_UNDERLINE: used to put underline below the text. 6) CLI_DESIGN_BLINK: used to make a blinking text. 7) CLI_DESIGN_BLINK_FAST: used to make a faster blinking text. 8) CLI_DESIGN_HIDDEN: used to hide the text. 9) CLI_DESIGN_STRIKE: used to make a strike-through text.\

10) CLI_DESIGN_BG_BRIGHT_BLACK: used to set the background color of the text to bright black. 11) CLI_DESIGN_BG_BRIGHT_RED: used to set the background color of the text to bright red. 12) CLI_DESIGN_BG_BRIGHT_GREEN: used to set the background color of the text to bright green. 13) CLI_DESIGN_BG_BRIGHT_YELLOW: used to set the background color of the text to bright yellow. 14) CLI_DESIGN_BG_BRIGHT_BLUE: used to set the background color of the text to bright blue. 15) CLI_DESIGN_BG_BRIGHT_MAGENTA: used to set the background color of the text to bright magenta. 16) CLI_DESIGN_BG_BRIGHT_CYAN: used to set the background color of the text to bright cyan. 17) CLI_DESIGN_BG_BRIGHT_WHITE: used to set the background color of the text to bright white.\

18) CLI_DESIGN_BG_BLACK: used to set the background color of the text to black. 19) CLI_DESIGN_BG_RED: used to set the background color of the text to red. 20) CLI_DESIGN_BG_GREEN: used to set the background color of the text to green. 21) CLI_DESIGN_BG_YELLOW: used to set the background color of the text to yellow. 22) CLI_DESIGN_BG_BLUE: used to set the background color of the text to blue. 23) CLI_DESIGN_BG_MAGENTA: used to set the background color of the text to magenta. 24) CLI_DESIGN_BG_CYAN: used to set the background color of the text to cyan. 25) CLI_DESIGN_BG_WHITE: used to set the background color of the text to white.\

26) CLI_COLOR_BRIGHT_BLACK: used to set text color to bright black. 27) CLI_COLOR_BRIGHT_RED: used to set text color to bright red. 28) CLI_COLOR_BRIGHT_GREEN: used to set text color to bright green. 29) CLI_COLOR_BRIGHT_YELLOW: used to set text color to bright yellow. 30) CLI_COLOR_BRIGHT_BLUE: used to set text color to bright blue. 31) CLI_COLOR_BRIGHT_MAGENTA: used to set text color to bright magenta. 32) CLI_COLOR_BRIGHT_CYAN: used to set text color to bright cyan. 33) CLI_COLOR_BRIGHT_WHITE: used to set text color to bright white.\

34) CLI_COLOR_BLACK: used to set text color to black. 35) CLI_COLOR_RED: used to set text color to red. 36) CLI_COLOR_GREEN: used to set text color to green. 37) CLI_COLOR_YELLOW: used to set text color to yellow. 38) CLI_COLOR_BLUE: used to set text color to blue. 39) CLI_COLOR_MAGENTA: used to set text color to magenta. 40) CLI_COLOR_CYAN: used to set text color to cyan. 41) CLI_COLOR_WHITE: used to set text color to white.\


Usage:

{
    name : Main

    @ a bold yellow text with green background
    println( CLI_DESIGN_BG_GREEN, CLI_COLOR_BRIGHT_YELLOW, CLI_DESIGN_BOLD, "Saksham Rapid Object Notation", CLI_DESIGN_RESET)
}

OUTPUT:

Saksham Rapid Object Notation


Last updated