Yeesh.Output
(Yeesh v0.8.3)
View Source
ANSI output formatting helpers for terminal commands.
Commands can use these helpers to produce colored and styled output. xterm.js renders the ANSI escape sequences on the client.
Example
alias Yeesh.Output
output = Output.green("Success: ") <> Output.bold("deployed v1.2.3")
Summary
Functions
Colors text blue.
Wraps text in bold.
Colors text cyan.
Wraps text in dim style.
Formats an error message (red, prefixed with 'error:').
Colors text gray.
Colors text green.
Wraps text in italic.
Colors text magenta.
Colors text red.
Resets all ANSI formatting.
Wraps text in underline.
Formats a warning message (yellow, prefixed with 'warning:').
Colors text white.
Colors text yellow.
Functions
Colors text blue.
Wraps text in bold.
Colors text cyan.
Wraps text in dim style.
Formats an error message (red, prefixed with 'error:').
Colors text gray.
Colors text green.
Wraps text in italic.
Colors text magenta.
Colors text red.
@spec reset() :: String.t()
Resets all ANSI formatting.
Wraps text in underline.
Formats a warning message (yellow, prefixed with 'warning:').
Colors text white.
Colors text yellow.