I run code that uses ncurses's get_wch. My code included curses.h version 6.4 patch 20221231.
Recently, on a new Debian installation, I installed the latest available version of ncurses. The new installation uses curses.h version 6.4 patch 20230729. My code does not run on this version and complains that get_wch is not defined.
In curses.h patch 20221231, line 1848 has: #define get_wch(c) wget_wch(stdscr,(c)). As far as I can tell there is nowhere in the latest version of the ncurses suite where get_wch is defined. Certainly, in curses.h patch 20230729 there is no such definition. I tried replacing curses.h patch 20230729 with patch 20221231 and the code runs.
I do not want to leave my code using this arrangement because curses.h patch 20221231 is quite different from patch 20230729 -- less lines, for a start.
If I am to use curses.h patch 20230729, how am I to define get_wch(c)?