mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-07 03:14:07 +08:00
24 lines
512 B
JavaScript
24 lines
512 B
JavaScript
/**
|
|
* Created by nuintun on 2015/11/24.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = function (Terminal){
|
|
// CSI Ps g Tab Clear (TBC).
|
|
// Ps = 0 -> Clear Current Column (default).
|
|
// Ps = 3 -> Clear All.
|
|
// Potentially:
|
|
// Ps = 2 -> Clear Stops on Line.
|
|
// http://vt100.net/annarbor/aaa-ug/section6.html
|
|
Terminal.prototype.tabClear = function (params){
|
|
var param = params[0];
|
|
|
|
if (param <= 0) {
|
|
delete this.tabs[this.x];
|
|
} else if (param === 3) {
|
|
this.tabs = {};
|
|
}
|
|
};
|
|
};
|