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
Just wanted to see if you'd actually review it... :wink:

I've updated the things with better names and correct `*` usage.