def hide(stream=sys.stdout):
    """Hide cursor.
    Parameters
    ----------
    stream: sys.stdout, Optional
        Defines stream to write output to.
    """
    if os.name == "nt":
        ci = _CursorInfo()
        handle = ctypes.windll.kernel32.GetStdHandle(-11)
        ctypes.windll.kernel32.GetConsoleCursorInfo(handle, ctypes.byref(ci))
        ci.visible = False
        ctypes.windll.kernel32.SetConsoleCursorInfo(handle, ctypes.byref(ci))
    elif os.name == "posix":
        stream.write("\033[?25l")
        stream.flush()
Hide cursor.
    Parameters
    ----------
    stream: sys.stdout, Optional
        Defines stream to write output to.
    
halo/cursor.py