cmdline_tools/
mg_ansicode.pro
includes main-level programSet ANSI escape codes for the given text.
Other file information
- Todo:
Support more codes, available at:
http://en.wikipedia.org/wiki/ANSI_escape_code
Routines
top mg_ansicode
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)
Set ANSI color codes for the given text.
Return value
string/strarr
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
File attributes
Modification date: | Wed May 14 15:07:14 2014 |
Lines: | 57 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.