Xterm.js: Terminal background initially has wrong size

Created on 10 Feb 2017  路  2Comments  路  Source: xtermjs/xterm.js

We've started seeing this since we upgraded xterm from 2.2.3 to 2.3.1 in Jupyter:

terminal problem

We're passing in rows and cols options when we instantiate Terminal, and I've checked that rows is being passed a sensible value, but the background (xterm-viewport div) is not getting the correct height. As soon as resizing the window triggers the terminal to resize, it corrects itself and displays correctly.

Apologies if we're doing something stupid here, but we're currently stumped as to what it could be.

Details

  • Browser and browser version: Reproduced on Firefox 51 and Chromium.
  • OS version: Ubuntu 16.04
  • xterm.js version: 2.3.1

Cross-linking jupyter/notebook#2172

important typbug

Most helpful comment

Thanks, upgrading to 2.3.2 does indeed solve the issue we saw.

All 2 comments

I can repro this if I disable calls to resize in the demo, it's caused by optimizations to the system that measures character width/height size (CharMeasure).

Thanks, upgrading to 2.3.2 does indeed solve the issue we saw.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jerch picture jerch  路  3Comments

kolbe picture kolbe  路  3Comments

travisobregon picture travisobregon  路  3Comments

parisk picture parisk  路  3Comments

jestapinski picture jestapinski  路  3Comments