def console_load_xp(con: tcod.console.Console, filename: str) -> bool:
    """Update a console from a REXPaint `.xp` file."""
    return bool(
        lib.TCOD_console_load_xp(_console(con), filename.encode("utf-8"))
    )