2015-11-26 23:54:47 +08:00

30 lines
495 B
JavaScript

/**
* Created by nuintun on 2015/11/24.
*/
'use strict';
module.exports = function (Terminal){
// ESC c Full Reset (RIS).
Terminal.prototype.reset = function (){
var parent;
if (this.element) {
parent = this.element.parentNode;
if (parent) {
parent.removeChild(this.element);
}
}
Terminal.call(this, this.options);
this.open();
this.refresh(0, this.rows - 1);
if (parent) {
parent.appendChild(this.element);
}
};
};