code: function getTerminalLine(n) {
      if (n===undefined) n=0;
      var line = termText.length-(1+n);
      if (line<0) return undefined;
      return termText[line];
    }
docs: Get the Nth from latest line of text in the terminal (unlike getInputLine)