src/core/CliConsole.js
// Handles Enter for single line entries.
Handles Enter for single line entries.
Handles Enter for single line entries .
function enter() {
      if (inBrowser) {
        currentInput = makeLine(consoleInput.value);
        consoleInput.value = '';
      }
      else {
        setLineOffset(0); 
        if (!self.mute) cursor.eraseLine();
      }
      pendingInputs.push(currentInput);
      currentInput = makeLine('');
      inputOffset = 0;
      promptVisible = false;
      self.readingD.resolve('Well thats another fine kettle of fish');
    }
function enter ( ) { if ( inBrowser ) { currentInput = makeLine ( consoleInput . value ) ; consoleInput . value = '' ; } else { setLineOffset ( 0 ) ; if ( ! self . mute ) cursor . eraseLine ( ) ; } pendingInputs . push ( currentInput ) ; currentInput = makeLine ( '' ) ; inputOffset = 0 ; promptVisible = false ; self . readingD . resolve ( 'Well thats another fine kettle of fish' ) ; }
Handles Enter for single line entries.
Handles Enter for single line entries .
// Enters the current line even if it has not changed. // TODO: Clear full multiline inputs / // Clear the entire line.