[erlang-questions] Where is Erlang making use of ncurses?

Kenneth Lundin <>
Tue Mar 9 18:23:28 CET 2010


Hi,

Erlang uses ncurses in the terminal driver for the so called new shell.
http://github.com/erlang/otp/blob/pu/erts/emulator/drivers/unix/ttsl_drv.c

It is also possible to build an Erlang ersion which does not use
term_cap with the configure option

Some of the available configure options are:
...
--{with,without}-termcap: termcap (without implies that only the old
Erlang shell can be used)
...

/Kenneth Erlang/OTP Ericsson

On Tue, Mar 9, 2010 at 1:25 PM, Mazen Harake
<> wrote:
> 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
>
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
>
>


More information about the erlang-questions mailing list