INNER CODE UNIT · Python

_tui_available

FLOCK4H/Dexter · Dexter.py:253

def _tui_available() -> tuple[bool, str | None]:
    if curses is not None:
        return True, None

    detail = "Dexter's interactive terminal UI is unavailable because Python could not import curses."
    if _CURSES_IMPORT_ERROR is not None:
        detail = f"{detail} ({_CURSES_IMPORT_ERROR})"
    if os.name == "nt":
        detail = (
            f"{detail}\n"
            "Windows support requires the bundled `windows-curses` dependency. "
            "Reinstall Dexter with `python -m pip install .` or install it directly with "
            "`python -m pip install windows-curses`."
        )
    return False, detail


def _clear_terminal() -> None:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…