// --------In Version 0.11.23-----------------------------------------------------
// :: Change the command line to the new one
// -------------------------------------------------------------
set_command: function(command) {
init_deferr.then(function() {
command_line.set(command);
});
return self;
},
// ------In version 2.28.1-------------------------------------------------------
// :: Change the command line to the new one
// -------------------------------------------------------------
set_command: function(command, silent) {
when_ready(function ready() {
// TODO: refactor to use options - breaking change
if (typeof command !== 'string') {
command = JSON.stringify(command);
}
command_line.set(command, undefined, silent);
});
return self;
},
Do you think any changes from 0.11.23 to current one can induce the issue?
set_command: function(command, silent) {
when_ready(function ready() {
// TODO: refactor to use options - breaking change
if (typeof command !== 'string') {
command = JSON.stringify(command);
}
command_line.set(command, undefined, silent);
});
return self;
},
I think I figured it out!
var termTrace = $('#trace').terminal(function(command, term) {
var cmd = $.terminal.parse_command(command);
switch (cmd.name) {
case 'echo':
termMem.echo('Hello World');
break;
}
}, {
greetings: null,
name: 'trace',
height: 90,
width: 810,
});
var termMem = $('#memory').terminal(function(command, term) {
var cmd = $.terminal.parse_command(command);
switch (cmd.name) {
case 'echo':
termTrace.echo('Hello World');
break;
}
}, {
greetings: null,
name: 'memory',
height: 960,
width: 240,
});
This will let my type "echo" in one terminal and "Hello World" shows up in the other :D
Let me know if that's how it should be done ^^