Skip to content

Commit 49d4f58

Browse files
committed
Updated escript and readme to reflect rebar3 usage
1 parent 42d78af commit 49d4f58

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Cecho is an ncurses library for Erlang which enabled Erlang applications to crea
88
## Compile
99
To clean/compile run
1010

11-
./rebar clean
12-
./rebar compile
11+
./rebar3 clean
12+
./rebar3 compile
1313

1414
## Usage
1515
The intention of this library is to have an API as close as possible to the ncurses library. Something things can't be translated and other things return values instead of taking pointer arguments etc. but overall the API should be similar enough to make use of the ncurses documentation that is out on the web.
@@ -98,12 +98,12 @@ Examples on how to run the helloworld example (make sure you have compiled cecho
9898

9999
From the cecho directory do:
100100

101-
$> erl -noinput -pa ../cecho/ebin/ -eval 'cecho_example:helloworld()' +A 50
101+
$> erl -noinput -pa ../cecho/_build/default/lib/cecho/ebin/ -eval 'cecho_example:helloworld()' +A 50
102102

103103
Or create an escript file as follows:
104104

105105
#!/usr/bin/env escript
106-
%%! -noinput -pa ../cecho/ebin +A 50
106+
%%! -noinput -pa ../cecho/_build/default/lib/cecho/ebin +A 50
107107
-include_lib("cecho/include/cecho.hrl").
108108
main(_) -> cecho_example:helloworld().
109109

helloworld.escript

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env escript
2+
%%! -noinput -pa ../cecho/_build/default/lib/cecho/ebin +A 50
3+
-include_lib("cecho/include/cecho.hrl").
4+
main(_) -> cecho_example:helloworld().

run.escript

-4
This file was deleted.

0 commit comments

Comments
 (0)