WebTTY: switch terminal size to 80x25.
This commit is contained in:
parent
f40a08f3ef
commit
f29453c763
2 changed files with 3 additions and 2 deletions
|
|
@ -6,7 +6,7 @@ var fs = require('fs');
|
|||
var child_process = require("child_process");
|
||||
|
||||
var serveStaticRoot = "/home/elwin/hk/nodejs/rlg/s/";
|
||||
var ptyhelp = "/home/elwin/hk/nodejs/rlg/ptywreck/ptyhelperC";
|
||||
var ptyhelp = "/home/elwin/hk/nodejs/rlg/ptyhelper";
|
||||
var sessions = {};
|
||||
|
||||
var env_dontuse = {"TMUX": true, "TMUX_PANE": true};
|
||||
|
|
@ -20,6 +20,7 @@ function TermSession(sessid) {
|
|||
if (!(key in env_dontuse))
|
||||
childenv[key] = process.env[key];
|
||||
}
|
||||
childenv["PTYHELPER"] = "25x80";
|
||||
// Should setsid get set?
|
||||
var spawnopts = {"env": childenv, "cwd": process.env["HOME"]};
|
||||
this.child = child_process.spawn(ptyhelp, ["bash"], spawnopts);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue