'Set cursor on or off.'

def cursor(self, visible=None, size=None):

    info = CONSOLE_CURSOR_INFO()
    if self.GetConsoleCursorInfo(self.hout, byref(info)):
        if (visible is not None):
            info.bVisible = visible
        if (size is not None):
            info.dwSize = size
        self.SetConsoleCursorInfo(self.hout, byref(info))
