Skip to content

The ANSI CODES are listed below.

They might not behave the same way on all types of terminals, (this goes especially for the styles) so do not use them where they can create trouble for others.

Foreground ColoursHigh Colours
Black...\x1b[30mBlack...\x1b[90m
Red.....\x1b[31mRed.....\x1b[91m
Green...\x1b[32mGreen...\x1b[92m
Yellow..\x1b[33mYellow..\x1b[93m
Blue....\x1b[34mBlue....\x1b[94m
Magenta.\x1b[35mMagenta.\x1b[95m
Cyan....\x1b[36mCyan....\x1b[96m
White...\x1b[37mWhite...\x1b[97m
Background ColoursBackground High Colours
Black...\x1b[40mBlack...\x1b[100m
Red.....\x1b[41mRed.....\x1b[101m
Green...\x1b[42mGreen...\x1b[102m
Yellow..\x1b[43mYellow..\x1b[103m
Blue....\x1b[44mBlue....\x1b[104m
Magenta.\x1b[45mMagenta.\x1b[105m
Cyan....\x1b[46mCyan....\x1b[106m
White...\x1b[47mWhite...\x1b[107m
Text Style Attributes
Bold.........\x1b[1m
Underline....\x1b[4m
Blink........\x1b[5m
Inverse......\x1b[7m
Strikethrough\x1b[8m
Ansi off.....\x1b[0m

External Links

MUME Wiki — community documentation for Multi-Users in Middle-earth