Skip to content

emtenet/erlang-solarized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

solarized-erlang: Output and testing in a solarized terminal

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.

Documentation

  • 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.

Usage with erlang.mk

When using to create solarized output:

Makefile
DEPS = solarized
dep_solarized = git https://github.com/emtenet/erlang-solarized master

When using to solarize EUnit reports:

Makefile
TEST_DEPS = solarized
dep_solarized = git https://github.com/emtenet/erlang-solarized master

EUNIT_OPTS = no_tty, {report, {solarized_eunit, []}}

Solarized terminal

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)

Licence

See LICENSE for licensing information.

About

Output and testing in a solarized terminal

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages