I am using Jquery Terminal, and am trying to hide the prompt until greetings is typed. Currently I am using setTimeout to delay greeting but later will stimulate user typing. Using set_prompt() I am able to hide text in prompt but cursor still keeps in blinking. Here is my js code
$('#term_demo').terminal({
echo: function(arg1) {
this.echo(arg1);
},
rpc: 'some_file.php',
calc: {
add: function(a, b) {
this.echo(a+b);
},
sub: function(a, b) {
this.echo(a-b);
}
}
}, { prompt: '>', greeting: false, onInit : function(){
var that = this;
this.set_prompt("");
setTimeout(function(){
that.echo("gugrgv");
},3000);
} });