add ncursesw shared lib, to test properly

tools like nano and vim build fine with it,
add -DUSE_WIDECHAR to CFLAGS to include ncursesw.h
automatically when <ncurses.h> is used

Change-Id: I7bfacc4d812fdf2d69ab65a4c645af0e792ea34c
Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Restore test suite, with Android.mk

two test apps are included for libncurses and libncursesw

another one to print keys received by the terminal, like Fn

Change-Id: I31d3436d2b6c1c6ca7d9ebcb69433998d5f6ef4e
ncursesw: override bionic MB_LEN_MAX and MB_CUR_MAX

add custom string mb to wc convert funcs

bionic defines those values to 1, which is not compatible
with our implementation of wchar_t

Signed-off-by: Tanguy Pruvot <tanguy.pruvot@gmail.com>

Change-Id: I44b0a10830946aa2201641759dae5cffb43f646d
update widechar part and tests from ncurses 5.9

Change-Id: I63e1ba135c65e4818b4891763cc6999510a3a0dd