emit stdin with new line

This commit is contained in:
oleg 2015-11-24 21:18:05 +03:00
parent 8d5f410a4f
commit 755577003e

View File

@ -31,7 +31,7 @@ Command.prototype.run = function(params, callback) {
var cmd = spawn(params.cmd, params.args, params.options);
if (self.emitIn) {
self.emit('stdin', params.cmd + ' ' + params.args.join(' '));
self.emit('stdin', params.cmd + ' ' + params.args.join(' ') + '\n');
}
cmd.stdout.on('data', function(data) {