Merge in wide curses code done as a Summer of Code project byRuibiao Qiu.
This file originates from the ncurses distribution, thanks to the ncurses people for letting us use it
Wide curses merge
Move UCB-licensed code from 4-clause to 3-clause licence.Patches provided by Joel Baker in PR 22280, verified by myself.
More trailing white space.
RCS Id Police.
new libcurses, from new nvi