terminalType property

  1. @override
String? get terminalType
override

The terminal type, conventionally sourced from the TERM environment variable, or null when it is unknown.

Implementation

@override
String? get terminalType {
  try {
    return io.Platform.environment['TERM'];
  } catch (_) {
    return null;
  }
}