Smokkfiskur
Smokkfiskur is a small library for colored (ANSI) output in Erlang. It's can be useful when you need to create a command-line applications.
Installation
Make sure, that rebar3 installed and configured in your OS and add {deps, [{smokkfiskur, "0.1.3"}]}. to your rebar.config now run the following command:
➜ ~ rebar3 compileUsage
Just use the following format print(color, "Text").
smokkfiskur:print(red, "Red text").Example
-import(smokkfiskur, [print/2]).
update_something() ->
%% ...
%% ...
%% ...
print(green, "Something has been updated successfully!").or
-import(smokkfiskur, [print/2]).
%%=========================
%% Text
%%=========================
print(red, "Text").
print(black, "Text").
%%=========================
%% Background
%%=========================
background(red, "Text").
background(black, "Text").Screenshot
Here you can find screenshot.