add curses support for client

use curses as interface to work in a more user-friendly way.