(self, expand=True)
return c
Read one (sbcs or dbcs) full character; nonblocking.
Read one (sbcs or dbcs) full character; nonblocking.
Read one ( sbcs or dbcs ) full character ; nonblocking .
def get_fullchar(self, expand=True):
        """Read one (sbcs or dbcs) full character; nonblocking."""
        c = self._read_byte(expand)
        # insert dbcs chars from keyboard buffer two bytes at a time
        if (c in self._codepage.lead and self.buf.peek() in self._codepage.trail):
            c += self._read_byte(expand)
        if not c and self._stream_buffer:
            c = self._stream_buffer.popleft()
            if (c in self._codepage.lead and self._stream_buffer and
                        self._stream_buffer[0] in self._codepage.trail):
                c += self._stream_buffer.popleft()
        return c
def get_fullchar ( self , expand = True ) : c = self . _read_byte ( expand ) # insert dbcs chars from keyboard buffer two bytes at a time if ( c in self . _codepage . lead and self . buf . peek ( ) in self . _codepage . trail ) : c += self . _read_byte ( expand ) if not c and self . _stream_buffer : c = self . _stream_buffer . popleft ( ) if ( c in self . _codepage . lead and self . _stream_buffer and self . _stream_buffer [ 0 ] in self . _codepage . trail ) : c += self . _stream_buffer . popleft ( ) return c