Screen initialization. Creates curses stdscr and initialize the color pairs for display.
(self)
| 392 | right=self._output_pad_screen_width) |
| 393 | |
| 394 | def _screen_init(self): |
| 395 | """Screen initialization. |
| 396 | |
| 397 | Creates curses stdscr and initialize the color pairs for display. |
| 398 | """ |
| 399 | # If the terminal type is color-ready, enable it. |
| 400 | if os.getenv("COLORTERM") in _COLOR_READY_COLORTERMS: |
| 401 | os.environ["TERM"] = _COLOR_ENABLED_TERM |
| 402 | self._stdscr = curses.initscr() |
| 403 | self._command_window = None |
| 404 | self._screen_color_init() |
| 405 | |
| 406 | def _screen_color_init(self): |
| 407 | """Initialization of screen colors.""" |
no test coverage detected