xtermjs/xterm.js

Erratic text output from typing into xterm console on Chrome on Android devices

Ouverte

#3 600 ouverte le 8 janv. 2022

 (10 commentaires) (9 réactions) (0 personne assignée)TypeScript (1 574 forks)batch import
area/mobilehelp wantedtype/bug

Métriques du dépôt

Stars
 (16 196 étoiles)
Métriques de merge PR
 (Merge moyen 2j 10h) (16 PRs mergées en 30 j)

Description

We are using xterm at replit to provide users with a console, and our app runs on mobile as well. A significant number of our Android users are reporting that they are having issues with typing into their console, specifically, they are seeing their characters get jumbled up, duplicate characters, and weird text.

I found this from CodeMirror which would explain it:

Chrome Android, especially in combination with GBoard, not only doesn't reliably fire regular key events, but also often surrounds the effect of enter or backspace with a bunch of composition events that, when interrupted, cause text duplication or other kinds of corruption.

They've documented the workaround they use for their code editor here, which you can use as reference for fixing this bug around the Android Chrome limitation.

We would be very appreciative if you could prioritize this fix given the significant number of people affected by it.

Details

  • Browser and browser version: Chrome (latest)
  • OS version: Android (Galaxy S9)
  • xterm.js version: 4.14.1

Steps to reproduce

  1. Type a number into the console.
  2. See duplicated text output of the number.

Guide contributeur