mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(repl) add " "
This commit is contained in:
parent
d99b04009b
commit
faba464a18
1 changed files with 18 additions and 17 deletions
|
|
@ -1,22 +1,23 @@
|
|||
(function() {
|
||||
'use strict';
|
||||
|
||||
var repl = require('repl'),
|
||||
net = require('net');
|
||||
|
||||
module.exports = net.createServer(function (socket) {
|
||||
var r = repl.start({
|
||||
prompt: '[' + process.pid + '] ' +socket.remoteAddress+':'+socket.remotePort+'> ',
|
||||
input: socket,
|
||||
output: socket,
|
||||
terminal: true,
|
||||
useGlobal: false
|
||||
});
|
||||
|
||||
r.on('exit', function () {
|
||||
socket.end();
|
||||
});
|
||||
r.context.socket = socket;
|
||||
}).listen(1337);
|
||||
var repl = require('repl'),
|
||||
net = require('net');
|
||||
|
||||
module.exports = net.createServer(function (socket) {
|
||||
var r = repl.start({
|
||||
prompt: '[' + process.pid + '] ' +socket.remoteAddress+':'+socket.remotePort+'> ',
|
||||
input: socket,
|
||||
output: socket,
|
||||
terminal: true,
|
||||
useGlobal: false
|
||||
});
|
||||
|
||||
r.on('exit', function () {
|
||||
socket.end();
|
||||
});
|
||||
|
||||
r.context.socket = socket;
|
||||
}).listen(1337);
|
||||
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue