From 24ae5acf0f66f77811c984ea34a33ebd76ca0b4e Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 28 Apr 2015 04:09:16 +0400 Subject: [PATCH] support sudo without pty.js --- package.json | 2 +- plugins/c9.fs/proc2pty.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4ed24d12..c07e5bcc 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "c9.ide.help.support": "#60e88f5680", "c9.ide.imgeditor": "#08bbc53578", "c9.ide.immediate": "#6845a93705", - "c9.ide.installer": "#c0c85f897e", + "c9.ide.installer": "#086206a67f", "c9.ide.mount": "#32e79866ee", "c9.ide.navigate": "#64156c7f4a", "c9.ide.newresource": "#f1f0624768", diff --git a/plugins/c9.fs/proc2pty.js b/plugins/c9.fs/proc2pty.js index 249cda20..d9b9d562 100644 --- a/plugins/c9.fs/proc2pty.js +++ b/plugins/c9.fs/proc2pty.js @@ -4,7 +4,7 @@ define(function(require, exports, module) { module.exports = function(process){ var pty = new EventEmitter(); pty.write = function(data){ - process.stdin.write(data); + process.stdin.write(data.replace(/\r/g, "\n")); }; pty.resize = function(){}; pty.destroy = @@ -23,5 +23,5 @@ define(function(require, exports, module) { }); return pty; - } + }; }); \ No newline at end of file