Support for transparent terminals in curses mode