@property
    def ri(self):
        return win32.MS_RING_ON & self._GetCommModemStatus() != 0
Read terminal status line: Ring Indicator
dataset/ETHPy150Open pyserial/pyserial/serial/serialwin32.py/Serial.ri