paste method

Future<void> paste(
  1. String text
)

Pastes text as a terminal with bracketed paste does: between its start and end markers, in one read.

Implementation

Future<void> paste(String text) => input([
  ...ascii.encode('\x1b[200~'),
  ...utf8.encode(text),
  ...ascii.encode('\x1b[201~'),
]);