(self)
return struct.unpack('I',s)[0] & TIOCM_CTS != 0
Read terminal status line: Clear To Send
Read terminal status line: Clear To Send
Read terminal status line : Clear To Send
def getCTS(self):
        """Read terminal status line: Clear To Send"""
        if not self._isOpen: raise portNotOpenError
        s = fcntl.ioctl(self.fd, TIOCMGET, TIOCM_zero_str)
        return struct.unpack('I',s)[0] & TIOCM_CTS != 0
def getCTS ( self ) : if not self . _isOpen : raise portNotOpenError s = fcntl . ioctl ( self . fd , TIOCMGET , TIOCM_zero_str ) return struct . unpack ( 'I' , s ) [ 0 ] & TIOCM_CTS != 0