doc: add updated curses example.

* examples/curses.lua: Updated example from old lcurses docs.

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