stdscr configuration code