From 18fb0f5b01a2cb9503b790f0d688ffec14908f2a Mon Sep 17 00:00:00 2001 From: Ruben Daniels Date: Thu, 16 Apr 2015 02:44:50 +0000 Subject: [PATCH] Attempted to implement clear() --- package.json | 2 +- plugins/c9.ide.ui/widgets.terminal.js | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7e9bea82..a4b329f2 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "c9.ide.help.support": "#60e88f5680", "c9.ide.imgeditor": "#08bbc53578", "c9.ide.immediate": "#6845a93705", - "c9.ide.installer": "#467006e798", + "c9.ide.installer": "#6a565f792c", "c9.ide.mount": "#cb45b621f1", "c9.ide.navigate": "#64156c7f4a", "c9.ide.newresource": "#f1f0624768", diff --git a/plugins/c9.ide.ui/widgets.terminal.js b/plugins/c9.ide.ui/widgets.terminal.js index 4c7b1c2e..0682a932 100644 --- a/plugins/c9.ide.ui/widgets.terminal.js +++ b/plugins/c9.ide.ui/widgets.terminal.js @@ -368,6 +368,13 @@ define(function(require, exports, module) { write: function(data){ return terminal.write(data); }, + /** + * + */ + clear: function(data){ + terminal.ybase = 0; + terminal.lines = terminal.lines.slice(-(terminal.ybase + terminal.rows)); + }, /** * */