'Move or query the window cursor.'

def pos(self, x=None, y=None):

    if (x is None):
        info = CONSOLE_SCREEN_BUFFER_INFO()
        self.GetConsoleScreenBufferInfo(self.hout, byref(info))
        return (info.dwCursorPosition.X, info.dwCursorPosition.Y)
    else:
        return self.SetConsoleCursorPosition(self.hout, self.fixcoord(x, y))
