def insertAtCursor(self, b):
        if b == '\r':
            self.x = 0
        elif b == '\n':
            self._scrollDown()
        elif b in string.printable:
            if self.x >= self.width:
                self.nextLine()
            ch = (b, self._currentCharacterAttributes())
            if self.modes.get(insults.modes.IRM):
                self.lines[self.y][self.x:self.x] = [ch]
                self.lines[self.y].pop()
            else:
                self.lines[self.y][self.x] = ch
            self.x += 1
Get all the related items with a specific relation_type
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/conch/insults/helper.py/TerminalBuffer.insertAtCursor--crossover with--dataset/ETHPy150Open callowayproject/django-stories/stories/relations/models.py/StoryRelationManager.get_relation_type