hasTerminalControls static method

bool hasTerminalControls(
  1. String text
)

Returns whether text contains terminal controls.

Implementation

static bool hasTerminalControls(String text) {
  return _terminalControlSequences.hasMatch(text) ||
      _terminalControlCharacters.hasMatch(text);
}