curses functionality for user to control program