def israw ( self , * * kwargs ) : if self . raw is None : info = self . _container_info ( ) self . raw = self . stdout . isatty ( ) and info [ 'Config' ] [ 'Tty' ] return self . raw
python make pty raw
Returns True if the PTY should operate in raw mode .
def israw(self, **kwargs):
        """
        Returns True if the PTY should operate in raw mode.

        If the container was not started with tty=True, this will return False.
        """

        if self.raw is None:
            info = self._container_info()
            self.raw = self.stdout.isatty() and info['Config']['Tty']

        return self.raw