Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ Dawn of Time ➜ What is Dawn of Time (Dawn)? ➜ Colour support

Colour support

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Thu 17 Jan 2002 04:48 AM (UTC)
Message

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. 


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Astin   USA  (34 posts)  Bio
Date Reply #1 on Mon 29 Apr 2002 02:51 PM (UTC)
Message
In the more recent Dawn (Q and after) you need to replace { with ` so it would be `B to make the text blue.

-- Astin

ICQ: 161947723
YIM: Astinof
AIM: Aerostatal
EMAIL: Astin@endlessdreams.org
Top

Posted by Berdon   (4 posts)  Bio
Date Reply #2 on Sat 15 Jun 2002 04:48 PM (UTC)
Message
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.

~ Berdon Magnus ~
"Being defeated is often a temporary condition. Giving up is what makes it permanent."
"I'd rather be a failure in something that I love than a success in something that I don't."
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


16,378 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.