update files

This commit is contained in:
nuintun
2015-11-27 13:38:03 +08:00
parent 47814518cd
commit a6d641622b
4 changed files with 60 additions and 38 deletions

View File

@@ -40,17 +40,18 @@ module.exports = function (Terminal){
this.screen.setAttribute('spellcheck', 'false');
// sync default bg/fg colors
this.screen.style.backgroundColor = this.bgColor;
this.screen.style.color = this.fgColor;
this.screen.style.backgroundColor = this.background;
this.screen.style.color = this.foreground;
// Create the lines for our terminal.
this.children = [];
for (; i < this.rows; i++) {
div = document.createElement('div');
div.className = 'ui-terminal-row';
this.screen.appendChild(div);
this.children.push(div);
this.screen.appendChild(div);
}
// XXX - hack, move this somewhere else.