nl_ncurses_ is a call to the nl routine in the ncurses library. But names_z_ expects a different definition of nl in the locale where it is used. You might try this:
nms_z_=:4!:1 names_z_ nms_ncurses_ i.4 A_ALTCHARSET A_ATTRIBUTES A_BLINK A_BOLD A_CHARTEXT A_COLOR ... Also, note that ncurses should only be expected to function usefully in jconsole, since it expects a terminal window (though it might be handy to have a jqt or jhs session with ncurses loaded so that you can inspect its definitions more easily). You presumably would also want to make sure that the TERM environmental variable is set properly before starting that jconsole session. Note that you should also install ncurses-doc using apt so that you could, for example, look at the man page for nl. (Use man 3 nl if you also have a man page for the command line program named nl which prepends line numbers). That said, I was not able to get the ncurses api to work on my system. I defined a relatively simple example program: load'~addons/api/ncurses/ncurses.ijs' coinsert'ncurses' example=:3 :0 stdscr=: initscr'' move 3 10 addch"0 'Hello World!' getch'' endwin stdscr ) But I don't have a system handy with ncurses on it, so I can't test it. I hope that's close enough to correct that you can find and fix any bugs... Note that I used addch"0 because there's no printw in the current j ncurses api implementation. I think it should be straightforward to define a wrapper verb (which analyzed its arguments, built an appropriate library reference string and called 15!:0 directly). But, I would want to be able to test what I was building to make sure I had gotten the details right. I hope this helps. (I don't know how much you do or do not already know about ncurses...) -- Raul On Sat, Jun 12, 2021 at 4:10 AM David Lambert <[email protected]> wrote: > > Defining stdscr helps significantly. > > require'~addons/api/ncurses/ncurses.ijs' > > C=:conew'ncurses' > stdscr__C =: initscr__C'' > clear__C'' > refresh__C'' > > > Now, ncurses.ijs starts out with cocurrent 'ncurses' followed by a slew > of definitions. Yet, following the above sentences I do not understand > why the names aren't listed: > > names_ncurses_'' > 0 > > JVERSION > Engine: j903/j64avx2/linux > Beta-k: commercial/2021-05-30T16:05:35 > Library: 9.03.05 > Platform: Linux 64 > Installer: J903 install > InstallPath: /home/lambertdw/downloads/installs/j903 > Contact: www.jsoftware.com > > > Thanks, Dave > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
