Examples
red("Red text")
green("Green text")
blue("Blue text")
purple("Purple text")
@red "Red text (macro)"
@green "Green text (macro)"
@blue "Blue text (macro)"
@purple "Purple text (macro)"Red text
Green text
Blue text
Purple text
Red text (macro)
Green text (macro)
Blue text (macro)
Purple text (macro)APIs
Junimo.cprint — Function
cprint(text, code)
cprint(io, text, code)Print text using the specified ANSI color code.
Inputs
- text: string to print
- code: ANSI color code integer (e.g., 31 for red, 32 for green)
- io: optional
IOstream to write to (default:stdout)
Junimo.red — Function
red(text)
red(io, text)Print a line of text in red (ANSI 31).
Inputs
- text: string to print
- io: optional
IOstream to write to (default:stdout)
Notes
- Convenience wrapper for
cprint(..., ANSI_RED).
Junimo.green — Function
green(text)
green(io, text)Print a line of text in green (ANSI 32).
Inputs
- text: string to print
- io: optional
IOstream to write to (default:stdout)
Notes
- Convenience wrapper for
cprint(..., ANSI_GREEN).
Junimo.blue — Function
blue(text)
blue(io, text)Print a line of text in blue (ANSI 34).
Inputs
- text: string to print
- io: optional
IOstream to write to (default:stdout)
Notes
- Convenience wrapper for
cprint(..., ANSI_BLUE).
Junimo.purple — Function
purple(text)
purple(io, text)Print a line of text in purple (ANSI 35).
Inputs
- text: string to print
- io: optional
IOstream to write to (default:stdout)
Notes
- Convenience wrapper for
cprint(..., ANSI_PURPLE).
Junimo.@red — Macro
@red text
@red io textPrint a line of text in red (ANSI 31).
Inputs
- text: string to print
- io: optional
IOstream to write to
Junimo.@green — Macro
@green text
@green io textPrint a line of text in green (ANSI 32).
Inputs
- text: string to print
- io: optional
IOstream to write to
Junimo.@blue — Macro
@blue text
@blue io textPrint a line of text in blue (ANSI 34).
Inputs
- text: string to print
- io: optional
IOstream to write to
Junimo.@purple — Macro
@purple text
@purple io textPrint a line of text in purple (ANSI 35).
Inputs
- text: string to print
- io: optional
IOstream to write to