Formatting & Colors
P_ansibold
Syntax
@ansibold()
Use Case:
Returns the ANSI escape sequence for bold text (\x1B[1m).
Arguments:
- (None)
Examples:
- /echo @ansibold()Bold Text
See Also:
@ansireset, @forewhite
P_ansireset
Syntax
@ansireset()
Use Case:
Returns the ANSI escape sequence to reset all formatting and colors (\x1B[0m).
Arguments:
- (None)
Examples:
- /echo @ansireset()Reset
See Also:
@ansibold
P_charcolor
Syntax
@charcolor(pos)
Use Case:
Returns the ANSI color index (0-15) of the character at the specified 1-indexed position in the last line received from the server.
Arguments:
- {pos}: The character position.
Examples:
- /echo @charcolor(1)
See Also:
@textcolor, @wordcolor
P_textcolor
Syntax
@textcolor(text)
Use Case:
Returns the ANSI color index of the first character of the specified text found in the last line received from the server.
Arguments:
- {text}: The text to search for.
Examples:
- /echo @textcolor(target)
See Also:
@charcolor, @wordcolor
P_wordcolor
Syntax
@wordcolor(num)
Use Case:
Returns the ANSI color index of the start of the Nth word (1-indexed) in the last line received from the server.
Arguments:
- {num}: The word index.
Examples:
- /echo @wordcolor(2)
See Also:
@charcolor, @textcolor