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.

Tables

console

Fields:

  • print function Function to print text, defaults to io.write
  • FG Foreground color codes.
  • BG Background color codes.
generated by LDoc 1.5.0 Last updated 2024-05-14 17:15:29