[PATCH] mincurses.c: use ncurses API to enter raw() mode (ncurses-6.3 compatibility)
Before the change buld on `ncurses-6.3` was failing as:
mincurses.c: In function 'setup_term_customize': mincurses.c:345:20: error: 'TERMINAL' {aka 'struct term'} has no member named 'Nttyb' 345 | term = cur_term->Nttyb; | ^~
ncurses-6.3 removed from public API Nttyb and friends in https://github.com/mirror/ncurses/commit/493e2f7b3fc309879f561a094fdfc15e5304b3d6 effectively breaking the workaround of ce3fabff.
This change drops most of fine tunning over termios and uses ncurses `initscr()` / `raw()` pair of initializers to get to the mode closest to what `squishyball` manually installs.
The result seems to handle <Enter>, <Ctrl-C>, <Ctrl-?>, other keys and application exit correctly.
define PATH_MAX if undefined We're (ab)using PATH_MAX as an upper-bound on a string buffer size, but it isn't defined on all platforms (notably HURD). For those platforms just defined a reasonably high number.
diff --git a/tty.c b/tty.c index ac9ed44..1b83016 100644