unlockInput method

void unlockInput()

Implementation

void unlockInput() {
  if (!io.stdin.hasTerminal) return;

  try {
    io.stdin.echoMode = true;
    io.stdin.lineMode = true;
    // show cursor
    io.stdout.write('\x1B[?25h');
  } on io.StdinException {
    // See [lockInput].
  }
}