While the code change described below is probably worth doing, the problem is that the xcode command line tools don't seem to include libncurses.dylib. The only libncurses...dylib I can find are under my homebrew install. I'll figure out how to add them to the link order in fpc.cfg.
If this should have been posted in a different forum, let me know.
My problem is that ncursesw is not found when linking on MacOs. I know how to fix the issue in general: there is no ncursesw for MacOs, and wide character support is provided in their supplied ncurses.
Changing {$LINKLIB ncursesw} in ncrt.pp should fix the problem. More properly with an IFDEF to gate that for darwin.
My question is what is the right way to fix this on my system. I'm using Lazarus Lazarus 4.2 (rev Unknown) FPC 3.2.2 aarch64-darwin-cocoa from sourceforge downloads.
This can be duplicated on MacOs by compiling testn.pp -- fpc-3.2.2/packages/ncurses/examples/testn.pp.
Should I update my installation in place rebuilding ncurses.pp?
Looking for 'best practices' advice.
Thanks!