kopia lustrzana https://github.com/c9/core
tmux 2 doesn't print change-trigger message on startup
rodzic
95d8743646
commit
2b6730ff49
|
@ -225,13 +225,11 @@ module.exports = function(c9, proc, installPath, shell) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
var buffer = "";
|
|
||||||
session.pty.started = c9.platform == "win32";
|
|
||||||
session.pty.on("data", function(data) {
|
session.pty.on("data", function(data) {
|
||||||
if (!disregarded) {
|
if (!disregarded) {
|
||||||
if (typeof data == "object") {
|
if (typeof data == "object") {
|
||||||
if (data.started)
|
if (data.started)
|
||||||
return (session.pty.started = true);
|
return;
|
||||||
else if (data.code) {
|
else if (data.code) {
|
||||||
if (data.type == "exception") { // Error
|
if (data.type == "exception") { // Error
|
||||||
session.disregard();
|
session.disregard();
|
||||||
|
@ -246,15 +244,6 @@ module.exports = function(c9, proc, installPath, shell) {
|
||||||
return session.setSize(data);
|
return session.setSize(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!options.attach && !session.pty.started) {
|
|
||||||
buffer += data;
|
|
||||||
if (buffer.indexOf("Set option: c0-change-trigger -> 0 ") > -1) {
|
|
||||||
session.pty.started = true;
|
|
||||||
data = buffer.replace(/^[\s\S]*Set option: c0-change-trigger -> 0 /, "");
|
|
||||||
}
|
|
||||||
else return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (session.filter)
|
if (session.filter)
|
||||||
data = session.filter(data);
|
data = session.filter(data);
|
||||||
if (data)
|
if (data)
|
||||||
|
|
Ładowanie…
Reference in New Issue