Module leste.utils.console
Console module for output and style.
Functions
format (text, fg, bg, bold) | Formats text with specified foreground and background colors, and optionally bold. |
Tables
console |
Functions
- format (text, fg, bg, bold)
-
Formats text with specified foreground and background colors, and optionally bold.
Parameters:
- text string The text to format.
- fg number or nil The foreground color code, or nil for default.
- bg number or nil The background color code, or nil for default.
- bold boolean Whether to apply bold styling.
Returns:
-
string
The formatted text.