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.cprintFunction
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.redFunction
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.greenFunction
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.blueFunction
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.purpleFunction
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.@redMacro
@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.@greenMacro
@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.@blueMacro
@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.@purpleMacro
@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