Functions
black
fn (s: Str): Str
Colorize s black.
Example
println(::hot::term/black("dark text"))
blue
fn (s: Str): Str
Colorize s blue.
Example
println(::hot::term/blue("Info: processing..."))
bright-black
fn (s: Str): Str
Colorize s bright-black (gray).
Example
println(::hot::term/bright-black("Dimmed text"))
bright-blue
fn (s: Str): Str
Colorize s bright-blue.
Example
println(::hot::term/bright-blue("Link: click here"))
bright-cyan
fn (s: Str): Str
Colorize s bright-cyan.
Example
println(::hot::term/bright-cyan("Highlighted"))
bright-green
fn (s: Str): Str
Colorize s bright-green.
Example
println(::hot::term/bright-green("All tests passed!"))
bright-magenta
fn (s: Str): Str
Colorize s bright-magenta.
Example
println(::hot::term/bright-magenta("Verbose output"))
bright-red
fn (s: Str): Str
Colorize s bright-red.
Example
println(::hot::term/bright-red("Critical error!"))
bright-white
fn (s: Str): Str
Colorize s bright-white.
Example
println(::hot::term/bright-white("Bold text"))
bright-yellow
fn (s: Str): Str
Colorize s bright-yellow.
Example
println(::hot::term/bright-yellow("Important notice"))
color
fn (c: Int, s: Str): Str
Wrap s with ANSI escape codes for color code c.
Example
::hot::term/color(31, "Error!") // Red text
::hot::term/color(32, "Success") // Green text
cyan
fn (s: Str): Str
Colorize s cyan.
Example
println(::hot::term/cyan("Hint: try this"))
green
fn (s: Str): Str
Colorize s green.
Example
println(::hot::term/green("✓ Test passed"))
magenta
fn (s: Str): Str
Colorize s magenta.
Example
println(::hot::term/magenta("Debug output"))
red
fn (s: Str): Str
Colorize s red.
Example
println(::hot::term/red("Error: something failed"))
white
fn (s: Str): Str
Colorize s white.
Example
println(::hot::term/white("Normal text"))
yellow
fn (s: Str): Str
Colorize s yellow.
Example
println(::hot::term/yellow("Warning: deprecated"))