colour.i

musicmud-2.1.6/data/info/colour.i · 1.1 KB

From the archive musicmud2.1.6.tar.gz

Download the archive   « Back to the archive contents

@@@ making your text colourful
@@I Colour
@@|

   ^^[colour]   to set the foreground colour
  &&-[colour]   to set the background colour
  &&=[fg][bg]   to set both colours at the same time
   ^^n          to go back to normal

  &&/           to toggle italic
  &&_           to toggle underline

^WCode Colour   Code Colour
l    &=lWBlack^n    L    ^LDark Gray^n
b    ^bBlue^n     B    ^BBright Blue^n
g    ^gGreen^n    G    ^GBright Green^n
c    ^cCyan^n     C    ^CBright Cyan^n
r    ^rRed^n      R    ^RBright Red^n
m    ^mMagenta^n  M    ^MBright Magenta^n
y    ^yYellow^n   Y    ^YBright Yellow^n
w    ^wWhite^n    W    ^WBright White^n

and also:

n    ^nNormal^n   P    ^PMobile^n
s    ^sSay^n      p    ^pPlayer^n
t    ^tTell^n     d    ^dDirection^n
o    ^oObject^n   D    ^pDestation^n
@@|

To actually show a ^^ sign, just put two ^^ signs in a row : for example, ^^^^R will be displayed as ^^R.

To actually show a && sign, just put two && signs in a row : for example, &&&&-R will be displayed as &&-R.

Note that ^^w and ^^n DON'T give the same colour on all terminals, make sure not to use ^^w when you mean ^^n.

Site Stats

Snippets: 1791
Codebases: 571