def __getitem__(self, key):
        buffer_line = self.get_real_idx(key)

        # if line is past buffer end, add lines to buffer
        if buffer_line >= len(self.buffer):
            for i in range(len(self.buffer), buffer_line + 1):
                self.append(' ')

        return u(self.buffer[buffer_line], 'utf-8')
Define value access for ConqueScreen objects.
dataset/ETHPy150Open wkentaro/conque.vim/autoload/conque_term/conque_screen.py/ConqueScreen.__getitem__