mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
Fix insert chars
This commit is contained in:
2
butterfly/static/ext.min.js
vendored
2
butterfly/static/ext.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1895,19 +1895,18 @@
|
||||
};
|
||||
|
||||
Terminal.prototype.insertChars = function(params) {
|
||||
var j, param, results, row;
|
||||
var j, param, row;
|
||||
param = params[0];
|
||||
if (param < 1) {
|
||||
param = 1;
|
||||
}
|
||||
row = this.y;
|
||||
j = this.x;
|
||||
results = [];
|
||||
while (param-- && j < this.cols) {
|
||||
this.screen[row + this.shift].splice(j++, 0, [this.eraseAttr(), true]);
|
||||
results.push(this.screen[row + this.shift].pop());
|
||||
this.screen[row + this.shift][0].splice(j++, 0, [this.eraseAttr(), true]);
|
||||
this.screen[row + this.shift][0].pop();
|
||||
}
|
||||
return results;
|
||||
return this.screen[row + this.shift][1] = true;
|
||||
};
|
||||
|
||||
Terminal.prototype.cursorNextLine = function(params) {
|
||||
|
||||
7
butterfly/static/main.min.js
vendored
7
butterfly/static/main.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -1866,8 +1866,9 @@ class Terminal
|
||||
j = @x
|
||||
# xterm
|
||||
while param-- and j < @cols
|
||||
@screen[row + @shift].splice j++, 0, [@eraseAttr(), true]
|
||||
@screen[row + @shift].pop()
|
||||
@screen[row + @shift][0].splice j++, 0, [@eraseAttr(), true]
|
||||
@screen[row + @shift][0].pop()
|
||||
@screen[row + @shift][1] = true
|
||||
|
||||
|
||||
# CSI Ps E
|
||||
|
||||
Reference in New Issue
Block a user