'Write text at the given position.'

def text(self, x, y, text, attr=None):

    if (attr is None):
        attr = self.attr
    pos = self.fixcoord(x, y)
    n = c_int(0)
    self.WriteConsoleOutputCharacterA(self.hout, text, len(text), pos, byref(n))
    self.FillConsoleOutputAttribute(self.hout, attr, n, pos, byref(n))
