def sys_save_screenshot(name: Optional[str] = None) -> None:
    """Save a screenshot to a file.

    By default this will automatically save screenshots in the working
    directory.

    The automatic names are formatted as screenshotNNN.png.  For example:
    screenshot000.png, screenshot001.png, etc.  Whichever is available first.

    Args:
        file Optional[AnyStr]: File path to save screenshot.
    """
    lib.TCOD_sys_save_screenshot(
        _bytes(name) if name is not None else ffi.NULL
    )
def sys_save_screenshot ( name : Optional [ str ] = None ) -> None : lib . TCOD_sys_save_screenshot ( _bytes ( name ) if name is not None else ffi . NULL )
Save a screenshot to a file.

    By default this will automatically save screenshots in the working
    directory.

    The automatic names are formatted as screenshotNNN.png.  For example:
    screenshot000.png, screenshot001.png, etc.  Whichever is available first.

    Args:
        file Optional[AnyStr]: File path to save screenshot.