Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


Harris Geospatial / Docs Center / Libraries / Galloy / mg_ansicode

mg_ansicode

mg_ansicode.pro (mglib)

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

Set ANSI color codes for the given text.

Syntax


result = mg_ansicode(text [, /bold] [, /bright] [, /black] [, /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])

Return value


string/strarr

Parameters


text in required type=string/strarr

text to colorize

Keywords


bold in optional type=boolean
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 in optional type=boolean

set to color foreground text green

yellow in optional type=boolean

set to color foreground text yellow

blue in optional type=boolean

set to color foreground text blue

magenta in optional type=boolean

set to color foreground text magenta

cyan in optional type=boolean

set to color foreground text cyan

white in optional type=boolean

set to color foreground text white

background_bright in optional type=boolean

set to color background text to a brighter shade

background_black in optional type=boolean

set to color background text black

background_red in optional type=boolean

set to color background text red

background_green in optional type=boolean

set to color background text green

background_yellow in optional type=boolean

set to color background text yellow

background_blue in optional type=boolean

set to color background text blue

background_magenta in optional type=boolean

set to color background text magenta

background_cyan in optional type=boolean

set to color background text cyan

background_white in optional type=boolean

set to color background text white



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us