term name
This commit is contained in:
parent
1aebe9e395
commit
f8ac8a540c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue