From WikiChip
irc/colors
Revision as of 13:54, 10 May 2014 by 65.78.114.251 (talk) (Created page with "'''IRC Colors''' (or '''mIRC Colors''') is a light-weight sub-protocol designed to added support for various text formatting to IRC. The protocol usually supports ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

IRC Colors (or mIRC Colors) is a light-weight sub-protocol designed to added support for various text formatting to IRC. The protocol usually supports foreground, background, bold, italics, underline, and reverse.

Overview

Text formatting is done via a set of special character sequences that are parsed by the IRC client. Every new text format starts with one of the formatting control character. The same control character can be used at the end of the format in order to terminate it. The caret notation is used to represent such characters. For example, the U+0002 character is used to specify bold text. ^Hello World^ will display on supported IRC client as Hello World

Format characters

Most clients support at least bold and underline. Below are the common shortcuts for those characters:

Format Code point Shortcuts
Bold 0x02 Ctrl+B / Cmd+B
Italics 0x1D Ctrl+I / Opt+ Cmd+I
Underline 0x1F Ctrl+U / Opt+ Cmd+U
Reverse 0x16 Ctrl+R / Opt+ Cmd+R
Plain 0x0F Ctrl+O / Opt+ Cmd+O