term name

This commit is contained in:
Christopher Jeffrey 2015-07-06 04:10:56 -07:00
parent 1aebe9e395
commit f8ac8a540c
1 changed files with 4 additions and 2 deletions

View File

@ -43,6 +43,8 @@ function Terminal(options) {
this.style.bg = this.style.bg || 'default';
this.style.fg = this.style.fg || 'default';
this.termName = options.term || process.env.TERM || 'xterm';
this.bootstrap();
}
@ -85,7 +87,7 @@ Terminal.prototype.bootstrap = function() {
element.offsetParent = element;
this.term = require('term.js')({
termName: 'xterm',
termName: this.termName,
cols: this.width - this.iwidth,
rows: this.height - this.iheight,
context: element,
@ -200,7 +202,7 @@ Terminal.prototype.bootstrap = function() {
}
this.pty = require('pty.js').fork(this.shell, this.args, {
name: 'xterm',
name: this.termName,
cols: this.width - this.iwidth,
rows: this.height - this.iheight,
cwd: process.env.HOME,