This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Nifty [color-] codes?

Old posts that have not been replied to for several years.
Locked
m
madgabz
Voice
Posts: 20
Joined: Thu Apr 04, 2002 8:00 pm
Location: Copenhagen, Denmark
Contact:

Nifty [color-] codes?

Post by madgabz »

hi all,

I read the post on Color Codes which was quite helpful.
Now, I've found out, \002 makes bolds/unbolds text. Is there any other text formatting or otherwise useful codes to use?
Or, can someone point me to a webresource on this topic, as I can't seem to find anything on any major search engine?

TIA,
MadG
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

There are only limited codes available for use on IRC, and they are meant for basic formatting of text.

Taken from a post on the mIRC forums.

\001 - CTCP delimeter. Used to create both CTCP messages and replies. Messages use the IRC PRIVMSG command, CTCP replies use the IRC NOTICE command.

\002 - Bold, used to start and stop bolded text.

\003 - Colour, used to start and stop colour. When starting, you must use a colour code.
\003XX,ZZ
XX = 2 or 1 digit text colour
ZZ = 2 or 1 digit background colour.

There are posts stating the colour codes too.

\009 - Tab, some clients allow tabs, while others display a block or remove it

\015 - Normal - Returns all text to normal (client default colours and decoration).

\022 - Reversed - Changes the text sot he text and background colours are revered.

EG Yellow text of green background = green text on yellow background.

This is not allways supported, and may even use clinet default colours, rather than current setting reversal.

\031 - Underline. Text is underlined.

Some clinets also support aking text italic, but I am unable to find the correct code for it.

Other clients also support the bell code (\007), though most disable it, because it can cause iritation, when users flood the channel.

Both CR (\013) and LF (\010) are out of bounds, and can't be used for formatting. IRC servers use these delimeters to mark the end of a line/command.
m
madgabz
Voice
Posts: 20
Joined: Thu Apr 04, 2002 8:00 pm
Location: Copenhagen, Denmark
Contact:

Post by madgabz »

You know what, ppslim?

This is EXACTLY the kind of info, many of us un1337 tcl-coder-wannabees are greatful for. Please, if at any time you will find your way to pilfering those FAQs, include stuff like this!

Thank You, man! :D
Locked