|
AQIT 0.1.0
|
Go to the source code of this file.
Classes | |
| class | aquin.tui.detect.TuiCapability |
Namespaces | |
| namespace | aquin |
| namespace | aquin.tui |
| namespace | aquin.tui.detect |
Functions | |
| Platform | aquin.tui.detect.detect_platform (*, str|None sys_platform=None) |
| bool | aquin.tui.detect._truthy_env (str|None value) |
| str|None | aquin.tui.detect._opt_out_reason (Sequence[str] argv, Mapping[str, str] environ) |
| tuple[bool, str] | aquin.tui.detect._tty_ok (*, Callable[[], bool] stdin_isatty, Callable[[], bool] stdout_isatty) |
| tuple[bool, str] | aquin.tui.detect._posix_term_ok (Mapping[str, str] environ) |
| bool | aquin.tui.detect._windows_vt_from_environ (Mapping[str, str] environ) |
| bool | aquin.tui.detect._windows_vt_capable_default () |
| tuple[bool, str] | aquin.tui.detect._term_ok (Platform platform, Mapping[str, str] environ, *, Callable[[], bool] windows_vt_capable) |
| bool | aquin.tui.detect._textual_importable_default () |
| TuiCapability | aquin.tui.detect.detect_tui_capability (*, Sequence[str]|None argv=None, Mapping[str, str]|None environ=None, Callable[[], bool]|None stdin_isatty=None, Callable[[], bool]|None stdout_isatty=None, str|None sys_platform=None, Callable[[], bool]|None textual_importable=None, Callable[[], bool]|None windows_vt_capable=None) |
Variables | |
| aquin.tui.detect.Platform = Literal["linux", "darwin", "windows", "unknown"] | |
| aquin.tui.detect._DUMB_TERMS = frozenset({"", "dumb", "unknown"}) | |
| aquin.tui.detect._CI_TRUTHY = frozenset({"1", "true", "yes", "on"}) | |