tokenHalves property

(String, String) get tokenHalves

The token split into two halves, for emitting it across two literal arguments so the full token never appears verbatim in the command text we send (which would false-match if an interactive program echoed it back). Shared by every ShellDialect that builds its own marker command.

Implementation

(String, String) get tokenHalves {
  final mid = token.length ~/ 2;
  return (token.substring(0, mid), token.substring(mid));
}