code: function grabSerialPort() {
      // Ensure that keypresses go direct to the Espruino device
      Espruino.Core.Terminal.setInputDataHandler(function(d) {
        Espruino.Core.Serial.write(d);
      });
      // Ensure that data from Espruino goes to this terminal
      Espruino.Core.Serial.startListening(Espruino.Core.Terminal.outputDataHandler);
    }
docs: / Claim input and output of the Serial port