Print

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 IO stream to write to (default: stdout)
source
Junimo.red — Function
red(text)
red(io, text)

Print a line of text in red (ANSI 31).

Inputs

  • text: string to print
  • io: optional IO stream to write to (default: stdout)

Notes

  • Convenience wrapper for cprint(..., ANSI_RED).
source
Junimo.green — Function
green(text)
green(io, text)

Print a line of text in green (ANSI 32).

Inputs

  • text: string to print
  • io: optional IO stream to write to (default: stdout)

Notes

  • Convenience wrapper for cprint(..., ANSI_GREEN).
source
Junimo.blue — Function
blue(text)
blue(io, text)

Print a line of text in blue (ANSI 34).

Inputs

  • text: string to print
  • io: optional IO stream to write to (default: stdout)

Notes

  • Convenience wrapper for cprint(..., ANSI_BLUE).
source
Junimo.purple — Function
purple(text)
purple(io, text)

Print a line of text in purple (ANSI 35).

Inputs

  • text: string to print
  • io: optional IO stream to write to (default: stdout)

Notes

  • Convenience wrapper for cprint(..., ANSI_PURPLE).
source
Junimo.@red — Macro
@red text
@red io text

Print a line of text in red (ANSI 31).

Inputs

  • text: string to print
  • io: optional IO stream to write to
source
Junimo.@green — Macro
@green text
@green io text

Print a line of text in green (ANSI 32).

Inputs

  • text: string to print
  • io: optional IO stream to write to
source
Junimo.@blue — Macro
@blue text
@blue io text

Print a line of text in blue (ANSI 34).

Inputs

  • text: string to print
  • io: optional IO stream to write to
source
Junimo.@purple — Macro
@purple text
@purple io text

Print a line of text in purple (ANSI 35).

Inputs

  • text: string to print
  • io: optional IO stream to write to
source