update files

This commit is contained in:
nuintun
2015-11-25 09:42:21 +08:00
parent d50a32f882
commit d9d77434d6
9 changed files with 196 additions and 14 deletions

View File

@@ -5,6 +5,10 @@
'use strict';
module.exports = function (Terminal){
Terminal.prototype.eraseAttr = function (){
return (this.defAttr & ~0x1ff) | (this.curAttr & 0x1ff);
};
Terminal.prototype.eraseRight = function (x, y){
var line = this.lines[this.ybase + y];
var ch = [this.curAttr, ' ']; // xterm