mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-08 20:24:04 +08:00
17 lines
324 B
JavaScript
17 lines
324 B
JavaScript
/**
|
|
* Created by nuintun on 2015/11/24.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = function (Terminal){
|
|
// ESC c Full Reset (RIS).
|
|
Terminal.prototype.reset = function (){
|
|
this.options.rows = this.rows;
|
|
this.options.cols = this.cols;
|
|
|
|
Terminal.call(this, this.options);
|
|
this.refresh(0, this.rows - 1);
|
|
};
|
|
};
|