From 265c6576ea78c91b016c4440f81f1754bc4eb36d Mon Sep 17 00:00:00 2001 From: nightwing Date: Wed, 4 Nov 2015 02:06:04 +0400 Subject: [PATCH] fix issues with run button --- node_modules/vfs-local/localfs.js | 8 ++++---- package.json | 2 +- plugins/c9.ide.terminal/tmux_connection.js | 3 --- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/node_modules/vfs-local/localfs.js b/node_modules/vfs-local/localfs.js index 7a6dc53b..876193a6 100644 --- a/node_modules/vfs-local/localfs.js +++ b/node_modules/vfs-local/localfs.js @@ -1611,7 +1611,6 @@ module.exports = function setup(fsOptions) { if (options.capturePane) { options = options.capturePane; args = [ - // "-C", "-u2", // force utf and 256 color "-L", tmuxName, "capture-pane", options.joinLines !== false ? "-peJ" : "-pe", @@ -1801,13 +1800,14 @@ module.exports = function setup(fsOptions) { + BASH + " -l"); } else if (options.idle) { - options.command = "echo '[Idle]'"; + args.push(BASH + " -l -c 'printf \"\\e[01;34m[Idle]\\e[0m\\n\"" + + "; sleep 0.1;'"); } else if (options.command) { args.push(BASH + " -l -c '" + options.command.replace(/'/g, "'\\''") - + '; printf "\\e[01;30m\\n\\nProcess exited with code: $?\\e[0m\\n";' - + "sleep 0.1;'"); + + '; printf "\\e[01;30m\\n\\nProcess exited with code: $?\\e[0m\\n"' + + "; sleep 0.1;'"); } args.push( diff --git a/package.json b/package.json index e495f9c0..6f29c8a8 100644 --- a/package.json +++ b/package.json @@ -102,7 +102,7 @@ "c9.ide.recentfiles": "#7c099abf40", "c9.ide.remote": "#301d2ab519", "c9.ide.processlist": "#2b12cd1bdd", - "c9.ide.run": "#4d0917586d", + "c9.ide.run": "#62436a820a", "c9.ide.run.build": "#0598fff697", "c9.ide.run.debug.xdebug": "#61dcbd0180", "c9.ide.save": "#4a4a60a004", diff --git a/plugins/c9.ide.terminal/tmux_connection.js b/plugins/c9.ide.terminal/tmux_connection.js index 9b22a2a4..46f6d7e6 100644 --- a/plugins/c9.ide.terminal/tmux_connection.js +++ b/plugins/c9.ide.terminal/tmux_connection.js @@ -209,9 +209,6 @@ module.exports = function(c9, proc, installPath, shell) { delete session.pty; }; - pty.on("close", function(){ - pty.closed = true; - }); session.pty.on("exit", function(){ if (!disregarded) { session.connected = false;