diff --git a/index-rlg.html b/index-rlg.html index 9283acc..004a965 100644 --- a/index-rlg.html +++ b/index-rlg.html @@ -1,14 +1,14 @@
-
diff --git a/webttyd.js b/rlgwebd.js
similarity index 98%
rename from webttyd.js
rename to rlgwebd.js
index 51ea4a4..30d07f0 100755
--- a/webttyd.js
+++ b/rlgwebd.js
@@ -6,7 +6,6 @@ var http = require('http');
var url = require('url');
var path = require('path');
var fs = require('fs');
-//var tty = require("tty");
var child_process = require('child_process');
var daemon = require(path.join(localModules, "daemon"));
@@ -59,13 +58,10 @@ function TermSession(game, user, files) {
/* Grab a spot in the sessions table. */
sessions[this.sessid] = this;
/* TODO handle tty-opening errors */
- //var pterm = tty.open(games[game].path, ["-n", user.toString()]);
/* TODO make argument-finding into a method */
args = [games[game].path, "-n", user.toString()];
this.child = child_process.spawn("/bin/ptyhelper", args);
var ss = this;
- //this.ptmx = pterm[0];
- //this.child = pterm[1];
this.alive = true;
this.data = [];
this.lock = files[0];
@@ -122,7 +118,6 @@ function TermSession(game, user, files) {
/* Call this when the child is dead. */
if (this.alive)
return;
- //ss.ptmx.destroy();
ss.record.end();
/* Give the client a chance to read any leftover data. */
if (ss.data.length > 0)
@@ -528,4 +523,4 @@ catch (err) {
}
http.createServer(handler).listen(8080, "127.0.0.1");
-console.log('webttyd running at http://127.0.0.1:8080/');
+console.log('rlgwebd running at http://127.0.0.1:8080/');