Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

129
Views
JQuery Terminal - How to prevent a command line being displayed in the terminal history

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.

almost 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!