Current section
4 Versions
Jump to
Current section
4 Versions
Compare versions
5
files changed
+37
additions
-38
deletions
| @@ -0,0 +1,3 @@ | |
| 1 | + [ |
| 2 | + inputs: ["mix.exs", "{lib,test}/**/*.{ex,exs}"] |
| 3 | + ] |
| @@ -3,10 +3,10 @@ | |
| 3 3 | {<<"description">>,<<"Easier terminal styling">>}. |
| 4 4 | {<<"elixir">>,<<"~> 1.3">>}. |
| 5 5 | {<<"files">>, |
| 6 | - [<<"lib/exchalk.ex">>,<<"mix.exs">>,<<"readme.md">>,<<"license">>]}. |
| 6 | + [<<"lib">>,<<"lib/exchalk.ex">>,<<".formatter.exs">>,<<"mix.exs">>, |
| 7 | + <<"readme.md">>,<<"license">>]}. |
| 7 8 | {<<"licenses">>,[<<"MIT">>]}. |
| 8 9 | {<<"links">>,[{<<"GitHub">>,<<"https://github.com/sotojuan/exchalk">>}]}. |
| 9 | - {<<"maintainers">>,[<<"sotojuan">>]}. |
| 10 10 | {<<"name">>,<<"exchalk">>}. |
| 11 11 | {<<"requirements">>,[]}. |
| 12 | - {<<"version">>,<<"1.0.2">>}. |
| 12 | + {<<"version">>,<<"1.0.3">>}. |
| @@ -64,35 +64,35 @@ defmodule ExChalk do | |
| 64 64 | alias IO.ANSI |
| 65 65 | |
| 66 66 | @colors [ |
| 67 | - "black": ANSI.color(0), |
| 68 | - "red": ANSI.color(1), |
| 69 | - "green": ANSI.color(2), |
| 70 | - "yellow": ANSI.color(3), |
| 71 | - "blue": ANSI.color(4), |
| 72 | - "magenta": ANSI.color(5), |
| 73 | - "cyan": ANSI.color(6), |
| 74 | - "white": ANSI.color(7), |
| 75 | - "gray": "\e[90m", |
| 76 | - "grey": "\e[90m" |
| 67 | + black: ANSI.color(0), |
| 68 | + red: ANSI.color(1), |
| 69 | + green: ANSI.color(2), |
| 70 | + yellow: ANSI.color(3), |
| 71 | + blue: ANSI.color(4), |
| 72 | + magenta: ANSI.color(5), |
| 73 | + cyan: ANSI.color(6), |
| 74 | + white: ANSI.color(7), |
| 75 | + gray: "\e[90m", |
| 76 | + grey: "\e[90m" |
| 77 77 | ] |
| 78 78 | |
| 79 79 | @bg_colors [ |
| 80 | - "black": ANSI.color_background(0), |
| 81 | - "red": ANSI.color_background(1), |
| 82 | - "green": ANSI.color_background(2), |
| 83 | - "yellow": ANSI.color_background(3), |
| 84 | - "blue": ANSI.color_background(4), |
| 85 | - "magenta": ANSI.color_background(5), |
| 86 | - "cyan": ANSI.color_background(6), |
| 87 | - "white": ANSI.color_background(7) |
| 80 | + black: ANSI.color_background(0), |
| 81 | + red: ANSI.color_background(1), |
| 82 | + green: ANSI.color_background(2), |
| 83 | + yellow: ANSI.color_background(3), |
| 84 | + blue: ANSI.color_background(4), |
| 85 | + magenta: ANSI.color_background(5), |
| 86 | + cyan: ANSI.color_background(6), |
| 87 | + white: ANSI.color_background(7) |
| 88 88 | ] |
| 89 89 | |
| 90 90 | @modifiers [ |
| 91 | - reset: {ANSI.reset, ANSI.reset}, |
| 92 | - bold: {ANSI.bright, "\e[22m"}, |
| 93 | - dim: {ANSI.faint, "\e[22m"}, |
| 94 | - italic: {ANSI.italic, "\e[23m"}, |
| 95 | - underline: {ANSI.underline, "\e[24m"}, |
| 91 | + reset: {ANSI.reset(), ANSI.reset()}, |
| 92 | + bold: {ANSI.bright(), "\e[22m"}, |
| 93 | + dim: {ANSI.faint(), "\e[22m"}, |
| 94 | + italic: {ANSI.italic(), "\e[23m"}, |
| 95 | + underline: {ANSI.underline(), "\e[24m"}, |
| 96 96 | inverse: {"\e[7m", "\e[27m"}, |
| 97 97 | hidden: {"\e[8m", "\e[28m"}, |
| 98 98 | strikethrough: {"\e[9m", "\e[29m"} |
| @@ -4,13 +4,13 @@ defmodule ExChalk.Mixfile do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :exchalk, |
| 7 | - version: "1.0.2", |
| 7 | + version: "1.0.3", |
| 8 8 | elixir: "~> 1.3", |
| 9 | - build_embedded: Mix.env == :prod, |
| 10 | - start_permanent: Mix.env == :prod, |
| 11 | - description: description, |
| 12 | - package: package, |
| 13 | - deps: deps |
| 9 | + build_embedded: Mix.env() == :prod, |
| 10 | + start_permanent: Mix.env() == :prod, |
| 11 | + description: description(), |
| 12 | + package: package(), |
| 13 | + deps: deps() |
| 14 14 | ] |
| 15 15 | end |
| 16 16 | |
| @@ -26,9 +26,7 @@ defmodule ExChalk.Mixfile do | |
| 26 26 | |
| 27 27 | defp deps do |
| 28 28 | [ |
| 29 | - {:credo, "~> 0.4", only: [:dev, :test]}, |
| 30 | - {:earmark, "~> 0.2", only: :dev}, |
| 31 | - {:ex_doc, "~> 0.11", only: :dev} |
| 29 | + {:ex_doc, "~> 0.21.2", only: :dev} |
| 32 30 | ] |
| 33 31 | end |
| @@ -1,7 +1,5 @@ | |
| 1 1 | # exchalk |
| 2 2 | |
| 3 | - [](https://travis-ci.org/sotojuan/exchalk) |
| 4 | - |
| 5 3 | > Easier terminal styling |
| 6 4 | |
| 7 5 |  |
| @@ -82,7 +80,7 @@ See José's explanation in [this thread](https://elixirforum.com/t/implications- | |
| 82 80 | |
| 83 81 | ## 256-colors |
| 84 82 | |
| 85 | - ExChalk does not support anything other than the base eight colors, which guarantees it will work on all terminals and systems. For this the lower level [`IO.ANSI`](https://github.com/jbnicolai/ansi-256-colors) or the awesome [Bunt](https://github.com/rrrene/bunt) can be used. |
| 83 | + ExChalk does not support anything other than the base eight colors, which guarantees it will work on all terminals and systems. Some terminals, specifically `xterm` compliant ones, will support the full range of 8-bit colors. For this, the lower level [`IO.ANSI`](https://hexdocs.pm/elixir/IO.ANSI.html) or the awesome [Bunt](https://github.com/rrrene/bunt) can be used. |
| 86 84 | |
| 87 85 | ## Windows |