better fix for predict_echo test

pull/223/head
c9bot 2015-11-03 21:24:47 +01:00 zatwierdzone przez nightwing
rodzic f4bf550bf6
commit 469dd34bdf
3 zmienionych plików z 9 dodań i 5 usunięć

2
node_modules/vfs-local/localfs.js wygenerowano vendored
Wyświetl plik

@ -1611,7 +1611,7 @@ module.exports = function setup(fsOptions) {
if (options.capturePane) {
options = options.capturePane;
args = [
"-C",
// "-C",
"-u2", // force utf and 256 color
"-L", tmuxName,
"capture-pane", options.joinLines !== false ? "-peJ" : "-pe",

Wyświetl plik

@ -134,9 +134,7 @@ require(["lib/architect/architect", "lib/chai/chai", "/vfs-root", "ace/test/asse
session = editor.ace.getSession().c9session;
send = session.send;
if (peek(-2) === "$") // maybe there already was a prompt
return init();
afterPrompt(function() { setTimeout(init); });
setTimeout(init);
function init() {
afterPrompt(function() { setTimeout(start); });

Wyświetl plik

@ -668,6 +668,7 @@ define(function(require, exports, module) {
var queue = "";
var warned = false;
var timer = null;
var initialConnect = true;
function send(data) {
if (!(c9.status & c9.NETWORK))
@ -680,7 +681,7 @@ define(function(require, exports, module) {
timer = setTimeout(function() {
timer = null;
if (!session.connected)
return warnConnection();
return initialConnect || warnConnection();
// Send data to stdin of tmux process
session.pty.write(queue);
queue = "";
@ -746,6 +747,11 @@ define(function(require, exports, module) {
tab: session.tab
});
loadHistory(session);
initialConnect = false;
if (queue) {
session.pty.write(queue);
queue = "";
}
}
});
});