update files

This commit is contained in:
nuintun
2015-11-24 22:00:46 +08:00
parent 085a5cf350
commit 32ae3adceb
24 changed files with 149 additions and 142 deletions

View File

@@ -7,9 +7,9 @@
module.exports = function (Terminal){
// CSI Ps b Repeat the preceding graphic character Ps times (REP).
Terminal.prototype.repeatPrecedingCharacter = function (params){
var param = params[0] || 1,
line = this.lines[this.ybase + this.y],
ch = line[this.x - 1] || [this.defAttr, ' '];
var param = params[0] || 1;
var line = this.lines[this.ybase + this.y];
var ch = line[this.x - 1] || [this.defAttr, ' '];
while (param--) line[this.x++] = ch;
};