doc: add summary sentence to each curses API.

* ext/posix/curses.c, ext/posix/curses/window.c: Add API summary
lines.

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