Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Aug 15, 2010
  1. Changed version number.

    Mazen Harake authored
Commits on Aug 14, 2010
  1. Resetting the driver_select on exit.

    Mazen Harake authored
Commits on Aug 12, 2010
Commits on Aug 11, 2010
  1. Merge remote branch 'origin'

    Mazen Harake authored
Commits on Aug 9, 2010
  1. Changed so that a call to the c port with no arguments now sends

    Mazen Harake authored
    'undefined' instead of [] so that it is clear that the argument that is
    sent isn't a argument list (like the ones used in apply/3 e.g.). The
    argument is sent as-is to the driver and this should clarify a bit.
Commits on Aug 3, 2010
  1. Fixed compilation bug.

    Mazen Harake authored
  2. Added the werase API to clear a window. The erase API now uses werase

    Mazen Harake authored
    with ceSTDSCR
  3. Changed the license to a 2-clause BSD.

    Mazen Harake authored
  4. Changed how the getch() function is called. An async thread is now

    Mazen Harake authored
    created every time a new character is retrieved.
Commits on Aug 2, 2010
  1. Stupid git :(

    Mazen Harake authored
  2. Changed the Makefile to remove obsolete and unnecessary compile flags.

    Mazen Harake authored
    Updated rebar.config accordingly
Commits on Jun 13, 2010
  1. @mazenharake
Commits on Jun 11, 2010
  1. @kevsmith

    Fixed type in .app file

    kevsmith authored
  2. @mazenharake

    Fixed an inconsistency between the changes made for rebar and the Mak…

    mazenharake authored
    …efile. The *.so file would be put in the "wrong" place but the same convention as rebar is used and the *.so file is put in priv/
  3. @mazenharake
  4. @kevsmith

    A bit of clean up

    kevsmith authored
    Rebarified build and fixed small bug with driver loading
Commits on Mar 30, 2010
  1. @mazenharake
Commits on Mar 29, 2010
  1. @mazenharake

    Rewrote some of the getch logic to make it behave more in accordance …

    mazenharake authored
    …with the behaviour gen_server. Also cleaned up some unnecessary code lines and made things more readable.
  2. @mazenharake
Commits on Mar 28, 2010
  1. @mazenharake
Commits on Mar 25, 2010
  1. @mazenharake

    Added async-input.

    mazenharake authored
    The input is now done by ncurses itself. The driver starts a thread that will do getch() continuously and send a message back to Erlang when it has a character. meanwhile if a process asks for a char (cecho:getch()) it will block by first sending a message to the cecho_srv process and "register" itself as waiting and then as soon as a key input is read from the driver it will be sent to it.
    
    If a message is received from the port and no process is waiting for the character then the message will be discarded.
    If a process tries to do cecho:getch() at the same time as another one is already blocking the process that called cecho:getch() last will be killed.
    
    If special characters need to be captured then cecho:keypad/2 must be used to enable keypad mode.
    
    NOTE: erl must be started with +A <N> where N is a number (probably above 40, try e.g. 50 or above) AND the flag -noinput must be given to stop the erlang shell from reading input (and thus competing) with cecho. To test the new feature run cecho_example:input() as follows:
    
    $> pwd
    /home/mazen/dev/repos/cecho
    $> erl -pa ../cecho/ebin/ -noinput -eval 'cecho_example:input(),halt().' +A 50
    $>
    
    Use 'q' to quit.
  2. @mazenharake
  3. @mazenharake
Commits on Mar 18, 2010
  1. @mazenharake

    Added Window option to attron and attroff functions. These should hav…

    mazenharake authored
    …e taken a window argument before but was not since I hadn't implemented windows yet. Leaving the old functions which don't take a window for easier access to stdscr.
  2. @mazenharake
Commits on Mar 17, 2010
  1. Added the ability to add borders. Together with the macros one can no…

    Mazen Harake authored
    …w specify a border around any window. Also removed the limitation on Char arguments to all functions dealing with Chars as input; this is so that the macros can be used.
  2. Merge branch 'osxmake' into boxing

    Mazen Harake authored
  3. @mazenharake

    Added the WHLINE and WVLINE commands. Also changed so that they (and …

    mazenharake authored
    …all addch versions) now use chtype as the type passed on to the ncurses function so that the special characters can be used. As a consequence I also removed the limitations in the API which limits the Char arguments to a function to be 0 < X < 256.
  4. @mazenharake

    Added a bunch of macros that contain special codes to print out speci…

    mazenharake authored
    …al characters mainly to make "prettier" borders and stuff
Commits on Mar 16, 2010
  1. @mazenharake
  2. @mazenharake
Commits on Mar 14, 2010
  1. Added macros for setting attributes REVERSE (background becomes foreg…

    Mazen Harake authored
    …round and vice versa) and BLINK (probably will NEVER be used but included it while I was at it :))
Commits on Mar 13, 2010
  1. Fixed issue #1. The problem was due to calling the function "error" w…

    Mazen Harake authored
    …hich I guess was a really noob C mistake. It has been fixed.
Commits on Mar 9, 2010
  1. Added the possibility to provide the scrollok function with a window.…

    Mazen Harake authored
    … If the standard screen is to be used one should use the macro ?ceSTDSCR as the window parameter. Also removed a call to refresh inside the do_initscr function in the driver and added it in the cecho_srv.erl file instead so that starting and stopping the application will clear the screen properly on start up
Something went wrong with that request. Please try again.