Attempted to implement clear()

This commit is contained in:
Ruben Daniels 2015-04-16 02:44:50 +00:00 committed by nightwing
parent d606c2a1d6
commit 18fb0f5b01
2 changed files with 8 additions and 1 deletions

View File

@ -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",

View File

@ -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));
},
/**
*
*/