solarized-erlang is an Erlang library with tools to produce output in a solarized terminal.
solarized-erlang is distributed under the terms of the ISC Licence;
see LICENSE
.
-
solarized
module.Output styled text.
-
solarized_eunit
module.Solarized reports from Eunit.
-
solarized_capture
module.Mock and capture output (including rows and columns) for use in tests.
-
eunit.hrl
header file.Useful macros for use in EUnit tests.
When using to create solarized output:
DEPS = solarized dep_solarized = git https://github.com/emtenet/erlang-solarized master
When using to solarize EUnit reports:
TEST_DEPS = solarized dep_solarized = git https://github.com/emtenet/erlang-solarized master EUNIT_OPTS = no_tty, {report, {solarized_eunit, []}}
This library currently assumes a terminal appropriately setup for dark solarized as follows:
-
the terminal supports 24-bit colors
-
the following ANSI escapes:
-
reset:
escape [ 0 m
-
set foreground color:
escape [ 38 ; 2 ; red ; green ; blue m
-
set default foreground color:
escape [ 39 m
-
set background color:
escape [ 48 ; 2 ; red ; green ; blue m
-
set default background color:
escape [ 49 m
-
bold on:
escape [ 1 m
and off:escape [ 22 m
-
reverse on:
escape [ 7 m
and off:escape [ 27 m
-
underline on:
escape [ 4 m
and off:escape [ 24 m
-
-
default foreground color: base0
rgb(131, 148, 150)
-
default background color: base03
rgb(0, 43, 54)
See LICENSE for licensing information.