Call the dgl replacement rlgwebd instead of webttyd.
This commit is contained in:
parent
f29453c763
commit
5b0be4c820
2 changed files with 3 additions and 8 deletions
|
|
@ -1,14 +1,14 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title>WebTTY</title>
|
||||
<title>RLG-Web</title>
|
||||
<script type="text/javascript" src="termemu.js"></script>
|
||||
<script type="text/javascript" src="termemu-keys.js"></script>
|
||||
<script type="text/javascript" src="rlgterm.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="tty.css">
|
||||
</head>
|
||||
<body onload="setup()" onkeydown="sendkey(event)">
|
||||
<h1>WebTTY</h1>
|
||||
<h1>RLG-Web</h1>
|
||||
<div id ="top">
|
||||
<span id="ttitle"></span>
|
||||
<img src="/bell.png" alt="bell" id="bell">
|
||||
|
|
|
|||
|
|
@ -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/');
|
||||
Loading…
Add table
Add a link
Reference in a new issue