code: def text(self, x, y, text, attr=None):
          u'''Write text at the given position.'''
          self.pos(x, y)
          self.write_color(text, attrf text(self, x, y, text, attr=None):
          u'''Write text at the given position.'''
          self.pos(x, y)
          self.write_color(text, attr)
docs: u'''Write text at the given position.