'Performs the writing for write()'

def _write(self, txt, align, font):

    (item, end) = self.screen._write(self._position, txt, align, font, self._pencolor)
    self.items.append(item)
    if self.undobuffer:
        self.undobuffer.push(('wri', item))
    return end
