refactor: reformat curses.c to match posix sources.

* ext/posix/curses.c: Reformat.

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