unlockInput method

void unlockInput()

Implementation

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

  io.stdin.echoMode = true;
  io.stdin.lineMode = true;
  // show cursor
  io.stdout.write('\x1B[?25h');
}