All escape codes are 3 characters, the first being a pound sign, the last two being the actual escape value.  Some may optionally be followed by additional arguments, generally surrounded with the < and > signs.  Ex: #xx<yyyy>.  Note that escape codes are case sensitive.

The following is a list of all escape codes:

ANSI Color Codes
-a    Reset all ANSI attributes/ANSI off.
b+    Bold text ON.
b-    Bold text OFF.
i+    Italic text ON.
i-    Italic text OFF.
u+    Underlined text ON.
u-    Underlined text OFF.
n+    Inverse colors ON.
n-    Inverse colors OFF.
s+    Strikethrough ON.
s-    Strikethrough OFF.
fz    Foreground black.
fr    Foreground red.
fg    Foreground green.
fy    Foreground yellow.
fb    Foreground blue.
fp    Foreground purple.
fc    Foreground cyan.
fw    Foreground white(light grey).
fd    Foreground default.
fZ    Foreground bold black(dark grey).
fR    Foreground bold red.
fG    Foreground bold green.
fY    Foreground bold yellow.
fB    Foreground bold blue.
fP    Foreground bold purple.
fC    Foreground bold cyan.
fW    Foreground bold white.
bz    Background black.
br    Background red.
bg    Background green.
by    Background yellow.
bb    Background blue.
bp    Background purple.
bc    Background cyan.
bw    Background white.
bd    Background default.
ad    ANSI default(default foreground/background color, all attributes off).

ANSI Command Codes
@s    Save cursor position.
@r    Restore cursor position.
@m    Move cursor.  To move to a specific position, should be followed an argument in the form "<x;y>".  Otherwise
      moves to the home position.
es    Erase screen.
el    Erase remainder of line(from cursor position).

MXP Command Codes
xo    Open MXP line.
xs    Secure MXP line.
xl    Locked MXP line.
xr    MXP client reset.
xn    Temporary secure mode(next tag only).  Must be used for both opening and closing tags.
lo    Lock open mode.
ls    Lock secure mode.
ll    Lock locked mode.
t+    Begin MXP Tag.  Used in place of "<".  Ex:  #t+COLOR blue#t-Hi#t+/Color#t-.  See lib_markup.MXPTag.
t-    End MXP Tag.  Used in place of ">".
e+    Begin MXP Entity.  Used in place of "&".  Note that ", &, <, and > are automatically converted to entities.  See 
      lib_markup.MXPEntity.
e-    End MXP Entity.  Used in place of ";".

Sound/Music(MSP or MXP) Codes
ms    Play music.  The music properties should follow in brackets(<>) per the MXP/MSP specifications.  MXP will be used if
      available, otherwise MSP will be used.  The properties should not include the text "MUSIC", just the attributes.
      Ex:  #ms<fugue.mid V=100 L=1 C=1 T=music U=http://www.example.net/>
sd    Play sound.  Same as above.

Internal Handling Codes
x+    Begin MXP only section.  Users without MXP activated will not receive this text.
x-    End MXP only section.
o+    Begin no MXP only section.  Users with MXP activated will not receive this text.
o-    End no MXP only section.
-x    Internal and external MXP reset.  Sends "xr" and resets current section status(ie, MXP only, no MXP only).
--    Reset everything.  Currently quivalent to "-a" + "-x".