summaryrefslogtreecommitdiff
path: root/js/codeq/console.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/console.js')
-rw-r--r--js/codeq/console.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/codeq/console.js b/js/codeq/console.js
index 5317355..13f1404 100644
--- a/js/codeq/console.js
+++ b/js/codeq/console.js
@@ -625,6 +625,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
this.reflow(startRow < originalCurrentRow ? startRow : originalCurrentRow);
},
+ 'clear': function () {
+ while (lines.length > 0)
+ this.removeRow(0, true);
+ lines.push({content: '', classNames: []});
+ currentRow = currentCol = 0;
+ this.reflow();
+ },
+
'insertAtCursor': function (text, className, dontMoveCursor) {
var startRow = currentRow,
currentLine = lines[currentRow],