Where is Erlang making use of ncurses?

Mazen Harake mazen.harake@REDACTED
Tue Mar 9 13:25:17 CET 2010


Hi all,

Recently I created an ncurses wrapper in Erlang to be able to write text based GUIs called cecho (I have released it under the BSD license here: http://github.com/mazenharake/cecho)

Anyway there is a bug I have come across which is extremely annoying and I'm beginning to think that perhaps Erlang is interfering with the commands I'm using because it itself uses ncurses. The problem is that when ever I use the move function to the max y,x of the terminal (getmaxyx/2 and - 1 on the values) and add a character the beam crash with the error:

/home/mazen//lib/erlang/erts-5.7.4/bin/beam.smp: : Unknown error 4294967295

All other positions work fine. I believe it has something to do with wrapping the last line or something. Is it possible that Erlang is interfering and if so where do I find where Erlang is using the ncurses library? I tried grep-ing and searching for any reference in the C code but I can't find anything.

I'm starting the shell like this:
erl -pa ../cecho/ebin/ -noshell -setcookie cookie -sname cecho

Erlang version and various:
Erlang R13B03 (erts-5.7.4) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
Suse 11.2
Linux moltov 2.6.31.5-0.1-desktop #1 SMP PREEMPT 2009-10-26 15:49:03 +0100 i686 i686 i386 GNU/Linux

/Mazen
---------------------------------------------------

---------------------------------------------------

WE'VE CHANGED NAMES!

Since January 1st 2010 Erlang Training and Consulting Ltd. has become ERLANG SOLUTIONS LTD.

www.erlang-solutions.com



More information about the erlang-questions mailing list