Lua Echo
Color text with tags, truecolor, and named circles.
The planned Lua echo() API uses inline tags inspired by MUD clients: simple color names, ANSI aliases, background colors, RGB hex tags, and <reset>.
Syntax
Foreground
echo("<green>Green text<reset>")
echo("<#12FA00>TrueColor text<reset>")
Background
echo("<bg:green>Green background<reset>")
echo("<bg:#202000>TrueColor background<reset>")
Echo colors persist between echo() calls during one Lua event. PlayMUD.online should automatically reset echo styling when the event finishes, so forgotten resets do not leak into later output.
Invalid tags should print literally instead of silently deleting text.
Name Matching
Color names should be forgiving. These should all resolve to the same color:
<light_sky_blue>
<LightSkyBlue>
<light sky blue>
<light-sky-blue>
Internally, PlayMUD.online can normalize names by lowercasing and removing spaces, underscores, and hyphens.
Circle Reference
This planned list follows the spirit of Mudlet's showColors reference, with ANSI aliases and a broad set of named colors. The chips are circular so the reference is scannable by color family instead of behaving like a spreadsheet.
ANSI
<ansi_black>
<ansi_red>
<ansi_green>
<ansi_yellow>
<ansi_blue>
<ansi_magenta>
<ansi_cyan>
<ansi_white>
<ansi_light_black>
<ansi_light_red>
<ansi_light_green>
<ansi_light_yellow>
<ansi_light_blue>
<ansi_light_magenta>
<ansi_light_cyan>
<ansi_light_white>
Reds And Pinks
<dark_red>
<red>
<firebrick>
<indian_red>
<tomato>
<light_coral>
<dark_salmon>
<salmon>
<light_salmon>
<rosy_brown>
<pale_violet_red>
<medium_violet_red>
<violet_red>
<hot_pink>
<deep_pink>
<pink>
<light_pink>
<lavender_blush>
Oranges And Browns
<sienna>
<saddle_brown>
<brown>
<chocolate>
<peru>
<orange_red>
<dark_orange>
<orange>
<coral>
<sandy_brown>
<burlywood>
<tan>
<wheat>
<moccasin>
<peach_puff>
<bisque>
Yellows And Greens
<dark_goldenrod>
<goldenrod>
<gold>
<yellow>
<light_yellow>
<lemon_chiffon>
<light_goldenrod_yellow>
<pale_goldenrod>
<khaki>
<dark_khaki>
<green_yellow>
<yellow_green>
<olive_drab>
<dark_olive_green>
<dark_green>
<forest_green>
<lime_green>
<green>
<chartreuse>
<lawn_green>
<pale_green>
<dark_sea_green>
<honeydew>
Cyans And Blues
<cyan>
<light_cyan>
<pale_turquoise>
<turquoise>
<medium_turquoise>
<dark_turquoise>
<aquamarine>
<medium_spring_green>
<spring_green>
<medium_aquamarine>
<medium_sea_green>
<sea_green>
<light_sea_green>
<cadet_blue>
<steel_blue>
<deep_sky_blue>
<sky_blue>
<light_sky_blue>
<powder_blue>
<light_blue>
<light_steel_blue>
<cornflower_blue>
<dodger_blue>
<blue>
<medium_blue>
<navy>
<midnight_blue>
Purples
<lavender>
<light_slate_blue>
<slate_blue>
<medium_slate_blue>
<dark_slate_blue>
<medium_purple>
<blue_violet>
<dark_violet>
<dark_orchid>
<medium_orchid>
<orchid>
<violet>
<plum>
<thistle>
<purple>
<magenta>
Greys And Whites
<dark_slate_grey>
<dim_grey>
<slate_grey>
<light_slate_grey>
<grey>
<dark_grey>
<light_grey>
<gainsboro>
<white_smoke>
<snow>
<mint_cream>
<azure>
<alice_blue>
<ghost_white>
<floral_white>
<ivory>
<old_lace>
<linen>
<antique_white>
<papaya_whip>
<blanched_almond>
<misty_rose>
<seashell>
<white>