Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

127
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda