diff --git a/terminal.js b/terminal.js index 5b69594..26b1592 100644 --- a/terminal.js +++ b/terminal.js @@ -110,6 +110,11 @@ var Terminal = (function () { newLine.textContent = message this._output.appendChild(newLine) } + this.printHTML = function (message) { + var newLine = document.createElement('div') + newLine.innerHTML = message + this._output.appendChild(newLine) + } this.input = function (message, callback) { promptInput(this, message, PROMPT_INPUT, callback) @@ -182,4 +187,4 @@ var Terminal = (function () { } return TerminalConstructor -}()) \ No newline at end of file +}())