mirror of
https://github.com/nuintun/command-manager.git
synced 2025-12-15 23:30:48 +08:00
update files
This commit is contained in:
@@ -74,6 +74,44 @@ module.exports = function (Terminal){
|
||||
this.updateRange(this.scrollBottom);
|
||||
};
|
||||
|
||||
// CSI P m SP }
|
||||
// Insert P s Column(s) (default = 1) (DECIC), VT420 and up.
|
||||
// NOTE: xterm doesn't enable this code by default.
|
||||
Terminal.prototype.insertColumns = function (params){
|
||||
var param = params[0];
|
||||
var l = this.ybase + this.rows;
|
||||
var ch = [this.eraseAttr(), ' ']; // xterm
|
||||
var i;
|
||||
|
||||
while (param--) {
|
||||
for (i = this.ybase; i < l; i++) {
|
||||
this.lines[i].splice(this.x + 1, 0, ch);
|
||||
this.lines[i].pop();
|
||||
}
|
||||
}
|
||||
|
||||
this.maxRange();
|
||||
};
|
||||
|
||||
// CSI P m SP ~
|
||||
// Delete P s Column(s) (default = 1) (DECDC), VT420 and up
|
||||
// NOTE: xterm doesn't enable this code by default.
|
||||
Terminal.prototype.deleteColumns = function (params){
|
||||
var param = params[0];
|
||||
var l = this.ybase + this.rows;
|
||||
var ch = [this.eraseAttr(), ' ']; // xterm
|
||||
var i;
|
||||
|
||||
while (param--) {
|
||||
for (i = this.ybase; i < l; i++) {
|
||||
this.lines[i].splice(this.x, 1);
|
||||
this.lines[i].push(ch);
|
||||
}
|
||||
}
|
||||
|
||||
this.maxRange();
|
||||
};
|
||||
|
||||
// CSI Ps P
|
||||
// Delete Ps Character(s) (default = 1) (DCH).
|
||||
Terminal.prototype.deleteChars = function (params){
|
||||
|
||||
Reference in New Issue
Block a user