I am trying to use: http://terminal.jcubic.pl/
I want to be able to call term.echo from another function to be able to place data inside the terminal, but I can not reference it.
Heres the code below:
jQuery(document).ready(function($) {
var id = 1;
$('body').terminal(function(command, term) {
if (command == 'help') {
term.echo("available commands are mysql, js, test");
} else{
term.echo("entered: " + command);
}
}, {
greetings: "Shell",
onBlur: function() {
return false;
}
});
});
How can I access term.echo externally, so I can from like a button click call term.echo to add in data?