simplify the curses draw function