docs: def text(self, x, y, text, attr=None):
          u'''Write text at the given position.'''
          if attr is None:
              attr = self.attr
  
          pos = self.fixcoord(x, y)
          n = DWORD(0)
          self.WriteConsoleOutputCharacterW(self.hout, text, 
                                            len(text), pos, byref(n))
          self.FillConsoleOutputAttribute(self.hout, attr, n, pos, byref(n))