Esempio n. 1
0
Prompt.prototype.startExternalEditor = function () {
  // Pause Readline to prevent stdin and stdout from being modified while the editor is showing
  this.rl.pause();
  ExternalEditor.editAsync(this.currentText, this.endExternalEditor.bind(this));
};
Esempio n. 2
0
 startExternalEditor() {
   // Pause Readline to prevent stdin and stdout from being modified while the editor is showing
   this.rl.pause();
   editAsync(this.currentText, this.endExternalEditor.bind(this));
 }