Slimelite BBS

ncursesw.zip

Back to lib

ncursesw (ncurses with wide char support)

Size
2.7M (2,811,989 bytes)
Added
2026-11-20 02:43
Downloads
2
Long Description
Welcome to Nurses! ================== ncurses (new curses) is a programming library providing an application programming interface (API) that allows the programmer to write text-based user interfaces (TUI) in a terminal-independent manner. This version was compiled for MorphOS using the native gcc compiler and wide char support was enabled. INSTALLATION ------------ Just untar the tarball and put it in /work/opt/ncursesw e.g., supposing that you use the ksh shell an that you have ncursesw-6.3-build-2022.11.17.tgz on the RAM-disk cd /ram tar zxvf ncursesw-6.3-build-2022.11.17.tgz mv ncursesw /work/opt/ncursesw THE FOLLOWING CHANGES WERE DONE ------------------------------- The biggest problem was the missing function "int wcwidth(wchar_t wc)" in the library of the native C compiler. #include <wchar.h> int wcwidth(wchar_t wc) 1. tty_update.c implemented morphos_wcwidth from https://github.com/termux/wcwidth 2. view.c used morphos_wcwidth that was defined in (1) 3. lib_acs.c same as (2) 4. frm_driver.c same as (2) 5. m_global.c same as (2) 6. ins_wide.c same as (2) 7. key_names.c same as (2) 8. ncurses.c same as (2) 9. savescreen.c same as (2) 10. test_add_wchstr.c same as (2) 11. test_addwstr.c same as (2) 12. new_pair.c added missing tdelete, tfind and tsearch using an implementation from https://github.com/davea42/tsearch-code GETTING THE SOURCE CODE AND COMPILING FROM SOURCE ------------------------------------------------- You can get the source code with git clone https://github.com/Aigor44/ncursesw-morphos.git Configure with ./configure-morphos if everything works, at the end we should obtains a message like the following. ** Configuration summary for NCURSES 6.3 20221105: extended funcs: yes xterm terminfo: xterm-new bin directory: /work/opt/ncursesw/bin lib directory: /work/opt/ncursesw/lib include directory: /work/opt/ncursesw/include/ncursesw man directory: /work/opt/ncursesw/share/man terminfo directory: /work/opt/ncursesw/share/terminfo ** Include-directory is not in a standard location Now execute the make commands. make make install # this will copy under /work/opt/ncursesw (using amiga file name conventions this is work:opt/ncursesw)