logic separation for stdscr handling between platforms