UvTerminalRenderer constructor
UvTerminalRenderer(
- StringSink _writer, {
- List<
String> ? env, - bool? isTty,
Creates a terminal renderer writing to _writer.
Optional env provides environment variables for capability detection.
Set isTty to force TTY mode when the sink is not a real terminal.
Implementation
UvTerminalRenderer(this._writer, {List<String>? env, bool? isTty})
: _env = env ?? const [],
_term = Environ(env ?? const []).getenv('TERM'),
_caps = _xtermCaps(Environ(env ?? const []).getenv('TERM')) {
_cur = _Cursor(x: -1, y: -1);
_saved = _cur.clone();
_profile = _detectProfile(_env, isTty);
_screen = _RendererScreen(this);
}