mg_ansicode.pro (mglib)
Other file information
- Todo:
Support more codes, available at:
http://en.wikipedia.org/wiki/ANSI_escape_code
Set ANSI color codes for the given text.
Syntax
result = mg_ansicode(text, bold=bold [, /bright] [, /black] [, /red], green=green, yellow=yellow, blue=blue, magenta=magenta, cyan=cyan, white=white, background_bright=background_bright, background_black=background_black, background_red=background_red, background_green=background_green, background_yellow=background_yellow, background_blue=background_blue, background_magenta=background_magenta, background_cyan=background_cyan, background_white=background_white)
Return value
Parameters
- text in required type=string/strarr
text to colorize
Keywords
- bold
- bright in optional type=boolean
set to color foreground text to a brighter shade
- black in optional type=boolean
set to color foreground text black
- red in optional type=boolean
set to color foreground text red
- green
- yellow
- blue
- magenta
- cyan
- white
- background_bright
- background_black
- background_red
- background_green
- background_yellow
- background_blue
- background_magenta
- background_cyan
- background_white