Does anyone know how to prevent a command from going into history in JQuery Terminal? That is, when a command is typed it triggers my :
var term = $('body').terminal(
function(command) {
//stuff here for dealing with the contents of 'command'.
}
Main hander function. When this function returns, terminal will then insert a line on the page and display a new prompt line underneath.
What I want to do (optionally) is say 'this command I've intercepted and worked on doesn't need to go into history'.
Alternatively how can I delete the last command from history?
Is that possible?
Edit: By way of avoiding XY problems: The task I'm trying to achieve is to create a terminal, and then on behalf of the user, enter commands. Ideally entry of the commands would be animated (a delay between letters). It's nearly working but not quite.