Remove an inaccurate comment and add a potentially helpful comment.

This commit is contained in:
Ben Newman
2014-10-20 15:02:54 -04:00
parent 8bd95ffe36
commit 17138b0805

View File

@@ -62,8 +62,6 @@ function onConnection(socket) {
});
}
// The child process calls this function when it receives the SHELLSTART
// command from the parent process (via stdin).
function startREPL(options) {
if (! options.output.columns) {
// The REPL's tab completion logic assumes process.stdout is a TTY,
@@ -264,6 +262,8 @@ exports.connect = function(appDir) {
reconnect.count = 0;
connected = true;
// Sending a JSON-stringified options object (even just an empty
// object) over the socket is required to start the REPL session.
sock.write(JSON.stringify({
terminal: !process.env.EMACS
}));