Skip to content

Commit

Permalink
Merge pull request #8 from julianduque/lfe-support-master
Browse files Browse the repository at this point in the history
Added metadata for hex.pm.
  • Loading branch information
julianduque committed Nov 4, 2016
2 parents a83c98a b90ee1d commit 1207588
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
18 changes: 10 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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:

Expand All @@ -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

Expand All @@ -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
Expand Down
10 changes: 9 additions & 1 deletion src/color.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
]}
]}.

0 comments on commit 1207588

Please sign in to comment.