Initial code to cncurses added