paste method

Future<void> paste(
  1. String text
)

Pastes text as a bracketed paste: PasteStartMsg, PasteMsg and PasteEndMsg, as a terminal sends it.

Implementation

Future<void> paste(String text) =>
    _sendAll(_decode(utf8.encode('\x1b[200~$text\x1b[201~')));