use curses in joystick program