Question for Rob re ncurses
- Posted by Chris Burch <chriscrylex at aol.com> Jan 22, 2006
- 500 views
Hi, I'm trying to wrap ncurses, its a slow job, but there are quite few things in there that I want. See my previous posts re the errors I'm getting, (if anyone has any suggestions I would be grateful), the problem is endwin causing a machine level exception (I've tried the following)
------------------------------------------------------------------------------- --initialise ncurses integer xinitscr xinitscr = link_func(ncurses_so, "initscr", {}, C_INT) global function initscr() ------------------------------------------------------------------------------- atom pointer pointer = c_func(xinitscr, {}) return pointer end function ------------------------------------------------------------------------------- --ends ncurses, returns to cooked mode integer xendwin xendwin = link_func(ncurses_so, "endwin", {}, C_INT) global procedure endwin() ------------------------------------------------------------------------------- atom rv rv = c_func(xendwin, {}) end procedure
Have also tried
------------------------------------------------------------------------------- --ends ncurses, returns to cooked mode integer xendwin xendwin = link_proc(ncurses_so, "endwin", {}) global procedure endwin() ------------------------------------------------------------------------------- atom rv c_proc(xendwin, {}) end procedure
both endwins produce the same result and mangle th console. Now, my question is this - could there be some interaction with the 'on board' ncurses already statically linked in the interpreter - if so would it possible for youy to 'loan' me a copy of a non-linked exu to test this out? Chris http://members.aol.com/chriscrylex/euphoria.htm http://uboard.proboards32.com/ http://members.aol.com/chriscrylex/EUSQLite/eusql.html