JLine3Backend

io.worxbend.tui.terminal.JLine3Backend
See theJLine3Backend companion class
object JLine3Backend

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def create(colorDepth: ColorDepth = ..., knownCapabilities: Option[TerminalCapabilities] = ...): Either[BackendError, JLine3Backend]

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.

Attributes