Colour support

Posted by Nick Gammon on Thu 17 Jan 2002 04:48 AM — 3 posts, 20,110 views.

Australia Forum Administrator #0

DoT supports extensive use of colours. You can colour your room descs, prompts, tells etc.


help color
edit[ 0 - commands.txt]COLORS ANSI ANSI-COLOR COLOURS COLOR-CODES
Syntax: colour
This command is a toggle to turn your ANSI color off and on.

You may also use colour in your texts - the format is like this:

The 'escape character' to specify a colour is the left handed brace '{', 
following that you should use one of the following letters,
      {R{r     red     {C{c     cyan
      {G{g     green   {Y{y     yellow
      {B{b     blue    {W{=?     white
      {M{m     magenta {X{=?     clear(reset colour)
      {{       { char  {S{s     silver
      {`       random  {~       tilde character
      {#       save    {^       restore

Use a capital letter for a highlighted version of a colour.

Example: {#{CYay!{^ will give you Yay!

If you want more than one color, you start the color change  with {# and 
change the other colors within the text. You end  it with {^.
 Example: I love {`colours. {#{=?Yes, {YI {=?do {Mlove {^them.{=?
          I love colours. Yes, I do love them.

Notice that in the above example, the word 'colours' is a random colour, 
and the word 'them' is the same colour... this is because the random colour 
(made with {`) was saved with the {# code then restored with the {^ code. 

USA #1
In the more recent Dawn (Q and after) you need to replace { with ` so it would be `B to make the text blue.

-- Astin
#2
Or you could just use the command
colour prefix <character>
to change the character to any character you want. Though it does not affect dawnftp connections.