Xterm.js: Terminal display refresh after resize issue

Created on 26 Oct 2017  路  2Comments  路  Source: xtermjs/xterm.js

Hello i am trying to use the xterm.js lib on the web but i am facing an issue while resizing the terminal on fly where the content doesn't refresh.

Details

  • Chrome
  • Mac os:
  • xterm.js version: 2.9.2

Steps to reproduce

  1. term.write( long text upper that 60 cols for example)
  2. term.resize(50,40)

=> here the entered text will be cutted and the last 10 cols will not be displayed.

PS : i have tried refresh, the only way to hack this is by clearing the terminal and rewriting the text.

duplicate typquestion

Most helpful comment

This behaviour is expected unfortunately. xterm.js does not automatically re-flow text if the terminal is resized. There have been some efforts to get this working, but unfortunately none of them have made it to production grade yet. It's still on our todo list though (see #622 for details).

All 2 comments

This behaviour is expected unfortunately. xterm.js does not automatically re-flow text if the terminal is resized. There have been some efforts to get this working, but unfortunately none of them have made it to production grade yet. It's still on our todo list though (see #622 for details).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

travisobregon picture travisobregon  路  3Comments

fabiospampinato picture fabiospampinato  路  4Comments

chris-tse picture chris-tse  路  4Comments

zhangjie2012 picture zhangjie2012  路  3Comments

jerch picture jerch  路  3Comments