Maximus BBS

Documentation for Maximus BBS — Next Generation

View on GitHub

Display Codes

Using display codes in Maximus BBS

Maximus NG supports display codes — short sequences embedded in prompts, display files, menu titles, and language strings that are replaced at runtime with colors, user data, formatted text, or terminal commands.

If you have used display codes on Mystic BBS, Renegade, or similar systems, you will feel right at home. Maximus uses the same | (pipe) prefix for colors and information codes, and the same $ prefix for formatting operators.

Related pages: Theme Colors covers the semantic color system in depth. Language Files (TOML) explains how display codes interact with language strings and parameter substitution.


How Display Codes Work

A display code starts with a pipe character (|) followed by two characters that tell Maximus what to display. Codes are case-sensitive.

For example, if you place this in a prompt or display file:

Welcome to the BBS, |UN!

Maximus replaces |UN with the current user’s name at runtime:

Welcome to the BBS, Kevin Morgan!

Display codes can be used in:


Code Categories

Each category has its own reference page with full tables, examples, and usage notes:


Contexts Where Codes Are Disabled

Display codes are automatically disabled in certain contexts to prevent user-authored content from being interpreted as codes:

System prompts, menus, status bars, and display files continue to process all display codes normally.


Quick Reference Card

Category Syntax Example Result
Foreground \|## \|14 Yellow text
Background \|## \|17 Blue background
Theme color \|xx \|pr Theme prompt color
User info \|XY \|UN User’s name
System info \|XY \|BN BBS name
Right-pad $R## $R20\|UN Name padded to 20 chars
Center $C## $C40\|BN BBS name centered in 40
Repeat char $D##C $D40- 40 dashes
Fill to column $X##C $X80. Dots to column 80
Clear screen \|CL \|CL Clears the screen
Goto column [X## [X01 Cursor to column 1
Early param \|!N \|!1 Early-expanded parameter
Deferred param \|#N $R20\|#1 Format-op-wrapped param
Literal pipe \|\| \|\| Displays \|
Literal dollar $$ $$ Displays $

Compatibility Notes

Maximus NG display codes are designed to be broadly compatible with the conventions established by Mystic BBS and Renegade:

Legacy Maximus MECCA display codes (compiled .bbs files using AVATAR bytecodes) continue to work. The new pipe-based codes are an additional layer that operates on plain-text strings at runtime.


See Also