lockInput method

void lockInput()

Implementation

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

  io.stdin.echoMode = false;
  io.stdin.lineMode = false;
  // hide cursor
  io.stdout.write('\x1B[?25l');
}