kopia lustrzana https://github.com/c9/core
fix issues with run button
rodzic
469dd34bdf
commit
265c6576ea
|
@ -1611,7 +1611,6 @@ module.exports = function setup(fsOptions) {
|
||||||
if (options.capturePane) {
|
if (options.capturePane) {
|
||||||
options = options.capturePane;
|
options = options.capturePane;
|
||||||
args = [
|
args = [
|
||||||
// "-C",
|
|
||||||
"-u2", // force utf and 256 color
|
"-u2", // force utf and 256 color
|
||||||
"-L", tmuxName,
|
"-L", tmuxName,
|
||||||
"capture-pane", options.joinLines !== false ? "-peJ" : "-pe",
|
"capture-pane", options.joinLines !== false ? "-peJ" : "-pe",
|
||||||
|
@ -1801,13 +1800,14 @@ module.exports = function setup(fsOptions) {
|
||||||
+ BASH + " -l");
|
+ BASH + " -l");
|
||||||
}
|
}
|
||||||
else if (options.idle) {
|
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) {
|
else if (options.command) {
|
||||||
args.push(BASH + " -l -c '"
|
args.push(BASH + " -l -c '"
|
||||||
+ options.command.replace(/'/g, "'\\''")
|
+ options.command.replace(/'/g, "'\\''")
|
||||||
+ '; printf "\\e[01;30m\\n\\nProcess exited with code: $?\\e[0m\\n";'
|
+ '; printf "\\e[01;30m\\n\\nProcess exited with code: $?\\e[0m\\n"'
|
||||||
+ "sleep 0.1;'");
|
+ "; sleep 0.1;'");
|
||||||
}
|
}
|
||||||
|
|
||||||
args.push(
|
args.push(
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
"c9.ide.recentfiles": "#7c099abf40",
|
"c9.ide.recentfiles": "#7c099abf40",
|
||||||
"c9.ide.remote": "#301d2ab519",
|
"c9.ide.remote": "#301d2ab519",
|
||||||
"c9.ide.processlist": "#2b12cd1bdd",
|
"c9.ide.processlist": "#2b12cd1bdd",
|
||||||
"c9.ide.run": "#4d0917586d",
|
"c9.ide.run": "#62436a820a",
|
||||||
"c9.ide.run.build": "#0598fff697",
|
"c9.ide.run.build": "#0598fff697",
|
||||||
"c9.ide.run.debug.xdebug": "#61dcbd0180",
|
"c9.ide.run.debug.xdebug": "#61dcbd0180",
|
||||||
"c9.ide.save": "#4a4a60a004",
|
"c9.ide.save": "#4a4a60a004",
|
||||||
|
|
|
@ -209,9 +209,6 @@ module.exports = function(c9, proc, installPath, shell) {
|
||||||
delete session.pty;
|
delete session.pty;
|
||||||
};
|
};
|
||||||
|
|
||||||
pty.on("close", function(){
|
|
||||||
pty.closed = true;
|
|
||||||
});
|
|
||||||
session.pty.on("exit", function(){
|
session.pty.on("exit", function(){
|
||||||
if (!disregarded) {
|
if (!disregarded) {
|
||||||
session.connected = false;
|
session.connected = false;
|
||||||
|
|
Ładowanie…
Reference in New Issue