curses window wrap class