Opens the process's controlling terminal. Fails with UnsupportedTerminal when there is no usable TTY.
Opens the process's controlling terminal. Fails with UnsupportedTerminal when there is no usable TTY.
colorDepth defaults to environment-based detection (honoring NO_COLOR/CLICOLOR_FORCE); pass an explicit value to force a palette regardless of the environment.
knownCapabilities is what an earlier backend on the same controlling terminal reported as its capabilities: given, entering raw mode skips the capability probe — one round trip of up to 100 ms — and reports these instead. A process that opens one backend after another (a run of one-shot prompts) probes once and hands the answer on; a terminal does not change what it supports while the process runs.