diff --git a/.travis.yml b/.travis.yml index c69b770..3c7d455 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,12 @@ language: erlang otp_release: - - R16B02 - - R16B01 - - R15B03 - - R15B02 - - R15B01 - - R14B04 - - R14B03 - - R14B02 + - 18.2.1 + - 18.1 + - 18.0 + - 17.5 + - R16B03 + - R16B02 + - R16B01 + - R15B03 + - R15B02 + - R15B01 diff --git a/README.md b/README.md index b096b70..deb342e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# Color +# erlang-color [![Build Status](https://travis-ci.org/julianduque/erlang-color.png)](https://travis-ci.org/julianduque/erlang-color) -ANSI colors for your Erlang +ANSI colors for your Erlang and Elixir ## Usage: @@ -11,26 +11,23 @@ ANSI colors for your Erlang 1> io:format("Hello, this is the ~s color~n", [ color:red("red") ]). ``` -![screen shot 2014-02-11 at 9 17 58 am](https://f.cloud.github.com/assets/1532071/2146293/946a634a-93bc-11e3-9a92-666b4f98f974.png) +![Screenshot 1](https://cldup.com/20QQ-o0RTT.png) ``` erlang 1> io:format("Hello, this is on ~s~n", [ color:on_blue("blue blackground") ]). ``` -![screen shot 2014-02-11 at 9 16 25 am](https://f.cloud.github.com/assets/1532071/2146294/9471a056-93bc-11e3-8b97-ac8fe0452bb3.png) +![Screenshot 2](https://cldup.com/g_BUaqeNTw.png) Make sure you use the `~s` string type, `~p` will escape the ANSI code. -![Screenshot](http://screencloud.net//img/screenshots/72780a4cdb969e3e3b8a3c0745847143.png) - #### xterm 256 colors ``` erlang 1> io:format("Hello, this color is ~s~n", [ color:rgb([0,1,0], "green") ]). ``` -![screen shot 2014-02-11 at 9 23 49 am](https://f.cloud.github.com/assets/1532071/2146292/945b6cd2-93bc-11e3-9ca0-111e0d69a9fd.png) - +![Screenshot 3](https://cldup.com/wKesRAqdFj.png) #### true 24-bit colors @@ -46,11 +43,11 @@ Note: as of this writing, 24-bit colors (ISO-8613-3) are not widely adopted in t color:true("859900", "green")]). ``` -![screen shot 2014-02-13 at 9 53 49 am](https://f.cloud.github.com/assets/1532071/2157754/0541197a-9484-11e3-87c5-be03f97f43cc.png) +![Screenshot 4](https://cldup.com/M-JcBjy9t1.png) ## The MIT License (MIT) -Copyright (c) 2014 Julian Duque, Evgeni Kolev +Copyright (c) 2016 Julian Duque, Evgeni Kolev Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation nfiles (the "Software"), to deal diff --git a/src/color.app.src b/src/color.app.src index 5ab1dcb..b39d5dc 100644 --- a/src/color.app.src +++ b/src/color.app.src @@ -10,5 +10,13 @@ kernel, stdlib ]}, - {env, []} + {env, []}, + %% Package metadata: + {pkg_name, erlang_color}, + {maintainers, ["Julian Duque"]}, + {licenses, ["MIT"]}, + {links, + [{"GitHub", "https://github.com/julianduque/erlang-color"}, + {"Hex", "https://hex.pm/packages/erlang_color"} + ]} ]}.