Simple example with curses. Not finished.