update files

This commit is contained in:
nuintun
2015-11-26 21:43:25 +08:00
parent d3b1f33b9f
commit 4f037c405f
6 changed files with 18 additions and 68 deletions

View File

@@ -29,35 +29,11 @@ module.exports = function (Terminal){
* open
*/
Terminal.prototype.open = function (){
var div;
var i = 0;
this.element = document.createElement('div');
this.element.className = 'ui-terminal';
this.element.style.outline = 'none';
this.element.setAttribute('tabindex', '0');
this.element.setAttribute('spellcheck', 'false');
// sync default bg/fg colors
this.element.style.backgroundColor = this.bgColor;
this.element.style.color = this.fgColor;
// Create the lines for our terminal.
this.children = [];
for (; i < this.rows; i++) {
div = document.createElement('div');
this.element.appendChild(div);
this.children.push(div);
}
this.refresh(0, this.rows - 1);
// XXX - hack, move this somewhere else.
if (Terminal.brokenBold === null) {
Terminal.brokenBold = isBoldBroken();
}
this.refresh(0, this.rows - 1);
};
};