cmdline_tools

Tools for command line use of IDL

single page | use frames     summary     class     fields     routine details     file attributes

./

mg_ansicode.pro

includes main-level program

Set ANSI escape codes for the given text.

Other file information

Todo:

Support more codes, available at:

http://en.wikipedia.org/wiki/ANSI_escape_code

top source 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: Mon Nov 29 18:31:14 2010
Lines: 99
Docformat: rst rst