Welcome to MorphOS-Storage, a webserver dedicated to MorphOS users. ©2016-2024 Meta-MorphOS.org
Description:ncursesw (ncurses with wide char support)
Developer/Porter:Aigor
Homepage:https://github.com/Aigor44/ncursesw-morphos
Readme:
Short: ncursesw (ncurses with wide char support)
Author: Thomas E. Dickey, Juergen Pfeifer, Eric S Raymond, Alexander V Lukyanov, Philippe Blain, Sven Verdoolaege, Nicolas Boulenguez et al. / morphos port by uploader
Uploader: aigor44 proton me (Aigor)
Type: dev/lib
Version: 6.3 (build 2022.11.17)
Architecture: ppc-morphos
URL: https://github.com/Aigor44/ncursesw-morphos


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)


Upload Date:Feb 27 2023
Category:Development/Library
Download:ncursesw_6.3.lha
Md5:55bdd12f3e854f958de3acf7c56a34ff
Size:4 MB
Downloads:160
Screenshot(s)
History
Last Comments