def METHOD_NAME(self):
    # N.B. `stty(1)` operates against stdin.
    try:
        self._tty_flags = termios.tcgetattr(sys.stdin.fileno())
    except termios.error as e:
        logger.debug(f"masking tcgetattr exception: {e!r}")