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

659
Vistas
XTermjs - How to resize XTerm terminal to match the exact dimensions of the window?

I have the following code that is part of a React class component:

render () {
    return (
        <div id = 'remote-console'>
        </div>
    )
}

and my application currently opens a new browser window with a console interface. I was wondering how I would be able to make this window resizable (and have the xterm console fit to the new dimensions). I currently use the FitAddon addon for xterm, but I'm not sure how to get the console to resize to the size of the current window (including the height)

componentDidMount() {
    this.console = new Terminal()
    this.fitAddon = new FitAddon()
    this.console.loadAddon(this.fitAddon)
    this.console.open(document.getElementById('remote-console'))
    this.fitAddon.fit()
    window.onresize = function () {
        this.fitAddon.fit()
    }
}
about 4 years ago · Juan Pablo Isaza
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