doc: add curses constants LDocs.

* ext/posix/curses.c: Document constants.
(register curses constants): Fix a typo so that KEY_F31 is
defined as advertised.
* NEWS: Update.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>