parameters: (self)
return_statement: return struct.unpack('I', s)[0] & TIOCM_RI != 0
docstring: Read terminal status line: Ring Indicator
docstring_summary: Read terminal status line: Ring Indicator
docstring_tokens: Read terminal status line : Ring Indicator
function: def ri(self):
          """Read terminal status line: Ring Indicator"""
          if not self.is_open:
              raise portNotOpenError
          s = fcntl.ioctl(self.fd, TIOCMGET, TIOCM_zero_str)
          return struct.unpack('I', s)[0] & TIOCM_RI != 0
function_tokens: def ri ( self ) : if not self . is_open : raise portNotOpenError s = fcntl . ioctl ( self . fd , TIOCMGET , TIOCM_zero_str ) return struct . unpack ( 'I' , s ) [ 0 ] & TIOCM_RI != 0