src/core/CliConsole.js
// Displays the prompt, current input, and positions  the cursor.
Displays the prompt, current input, and positions  the cursor.
Displays the prompt current input and positions the cursor .
function showCurrentLine(reprompt) {
      showPrompt(reprompt);
      if (inNode) {
        setLineOffset(self.prompt.length);
        var text = currentInput.textLine;
        if (self.pwdMode) {
          text = _.repeat('*', text.length);
        }
        out(text);
        if (!self.mute) cursor.eraseLine();
        var lineOffset = self.prompt.length + inputOffset;
        setLineOffset(lineOffset);
      }
      else {
        consoleInput.value = currentInput.textLine;
      }
      return self;
    }
function showCurrentLine ( reprompt ) { showPrompt ( reprompt ) ; if ( inNode ) { setLineOffset ( self . prompt . length ) ; var text = currentInput . textLine ; if ( self . pwdMode ) { text = _ . repeat ( '*' , text . length ) ; } out ( text ) ; if ( ! self . mute ) cursor . eraseLine ( ) ; var lineOffset = self . prompt . length + inputOffset ; setLineOffset ( lineOffset ) ; } else { consoleInput . value = currentInput . textLine ; } return self ; }
Displays the prompt, current input, and positions  the cursor.
Displays the prompt current input and positions the cursor .
/* istanbul ignore else */ //cursor.green(); // TODO - allow the entry to be longer than the visible line. // use:  self.displayCols and when the text is wider than available // switch to : //     'prompt>...line of text is too long.' //  or 'prompt>This line of text is too ...'