Updated chat example to use ncurses

There are a few hacks, but I don't know ncurses well enough to know if there's a better way of doing it.

#40