Register to post in forums, or Log in to your existing account
 

 Related 
Contents
Miscelaneous
  %clip
  %color
  %colorname
  %exec
  %expand
  %gsl
  %literal
  %mcp
  %mss
  %null
  %numparam
  %param
  %random
  %time
Function Reference
  %abs
  %additem
  %addkey
  %alarm
  %alias
  %ansi
  %array
  %arrget
  %arrhigh
  %arrset
  %ascii
  %average
  %begins
  %bitand
  %bitnot
  %bitor
  %bitxor
  %btncol
  %btnenable
  %btnimage
  %case
  %char
  %charcomment
  %charnotes
  %class
  %clip
  %color
  %colorname
  %comactive
  %comcreate
  %comget
  %comset
  %concat
  %copy
  %count
  %countlist
  %crtonl
  %db
  %dbget
  %dblist
  %dbmax
  %dbmin
  %dde
  %ddeclose
  %ddemacro
  %ddeopen
  %ddepoke
  %defined
  %delete
  %delitem
  %delkey
  %delnitem
  %destroom
  %dice
  %diceavg
  %dicedev
  %dicemax
  %dicemin
  %doorname
  %dups
  %ends
  %eval
  %exec
  %expand
  %expanddb
  %expandlist
  %filesize
  %find
  %float
  %format
  %getglobal
  %grep
  %gsl
  %handle
  %if
  %insert
  %int
  %inwalk
  %isfloat
  %iskey
  %ismember
  %isnumber
  %item
  %lastdir
  %left
  %leftback
  %len
  %literal
  %look
  %lower
  %match
  %mapfilter
  %maplocked
  %mapquery
  %mapvnum
  %max
  %mcp
  %min
  %mod
  %mss
  %nextdir
  %nltocr
  %norm
  %null
  %number
  %numbuttons
  %numitems
  %numkeys
  %numparam
  %numrec
  %numrooms
  %numwords
  %numzones
  %param
  %parsemode
  %pathcompress
  %pathexpand
  %pathfrom
  %pathreverse
  %pick
  %pop
  %portal
  %portalenabled
  %pos
  %prompt
  %proper
  %push
  %query
  %quote
  %random
  %read
  %regex
  %remove
  %repeat
  %replace
  %replaceitem
  %reversedir
  %right
  %rightback
  %roomcol
  %roomcom
  %roomcontents
  %roomcost
  %roomdesc
  %roomexit
  %roomflags
  %roomid
  %roomkey
  %roomkind
  %roomlink
  %roomload
  %roommob
  %roommode
  %roomname
  %roomnote
  %roomnum
  %roomobj
  %roomportal
  %roomvnum
  %roomzone
  %round
  %setglobal
  %sort
  %sqrt
  %state
  %stdev
  %string
  %stripansi
  %stripq
  %subchar
  %subregex
  %sum
  %time
  %trigger
  %trim
  %trimleft
  %trimright
  %upper
  %viewrec
  %walk
  %walkactive
  %walkconfirm
  %walkmode
  %walkroom
  %window
  %word
  %write
  %yesno
  %zonename
  %zonenum
  %zonevnum
Related Links:
  Features
  Basic Usage
  Emulation
  Logging
  Color Schemes
  ANSI Function Mapping
  Foreground
  Background
  Color Syntax
  Trigger Options
  Advanced Topics
  Using MXP
  #PCOL
  #SAY
  #STATUS
  #STWIN
  #TRIGGER
  Function Reference
  %ansi
  %if
  %stripansi
  Trigger Command Options
  Pattern Matching
  %ansi
  Conversion
  %if
  %stripansi
  #PCOL
  #SAY
  #STATUS
  #STWIN
  #TRIGGER
  Miscellaneous
  Standards
  Feature Summary
  Basic Usage
  Pattern Matching
  Editing Triggers
  Fonts
  Emulation
  Logging
  Schemes
  Attributes
  Foreground Colors
  Background Colors
  MXP
  Script Debugger
  Triggers
  Display Text Output
  New functions
  %colorsyntax
%ansi [[%ansi]] 
ansi

Syntax: %ansi(fore,back)
Related: %color, #COLOR, #PCOL, #CW

return the ANSI codes for the given colors. Can use a numeric value such as generated by the %color function.

You can also modify the fore and back attributes with the strings:
high highlight (select highlighted color)
bold bold text
rev reverse video
blink blinking text
under underlined text

Recognized color names:
black, blue, green, cyan, red, magenta, brown, gray, yellow, white

Examples

#SHOW %ansi(high,red)Hello%ansi(blink,blue,white)World

displays "Hello" in bright red and "World" in blinking blue letters on a white background
Viewer Comments [0 - Post your comments]

Jump to:  

© 2009 Zugg Software. Hosted by Wolfpaw.net