athena v0.1.0 Athena View Source
Link to this section Summary
Functions
Returns the current list of ansi_codes
in “lexigraphical” order
Parses an ansi_string
and returns the HTML output
Link to this section Functions
Returns the current list of ansi_codes
in “lexigraphical” order
Parses an ansi_string
and returns the HTML output.
Examples
iex> Athena.ansi_to_html(“\e[4mfoo\e[0m”) “foo”
It returns normal text when normal text is passed in iex> Athena.ansi_to_html(“normal text”) “normal text”
Background Colors iex> Athena.ansi_to_html(“My Background is \e[42mGreen\e[0m”) “My Background is Green”
Foreground Colors iex> Athena.ansi_to_html(“This text is \e[91mLight red\e[0m”) “This text is Light red”
Kitchen sink iex> Athena.ansi_to_html(“1 scenario (\e[31m1 failed\e[0m)\n8 steps (\e[31m1 failed\e[0m, \e[36m1 skipped\e[0m, \e[32m6 passed\e[0m)\n0m26.474s”) “1 scenario (1 failed)\n8 steps (1 failed, 1 skipped, 6 passed)\n0m26.474s”