I have question, how can i add value in Jquery Terminal? Something like this:
jQuery(function($, undefined) {
$('#terminal').terminal(function(command) {
if(command == 'test ' + value) { // Value (something a user wrote)
alert(value);
}else{
alert("You don't wrote anything.");
}
}, {
greetings: 'Hello.',
name: 'Name',
prompt: 'Terminal> ',
color: 'some color'
});
});
I mean something like this:
if(command == 'you type ' + userText) {
alert(userText);
} else {
alert("You don't wrote anything.");
}