xtermjs/xterm.js

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

Aberta

#3.600 aberto em 8 de jan. de 2022

 (10 comentários) (9 reações) (0 responsável)TypeScript (1.574 forks)batch import
area/mobilehelp wantedtype/bug

Métricas do repositório

Stars
 (16.196 estrelas)
Métricas de merge de PR
 (Mesclagem média 2d 10h) (16 fundiu PRs em 30d)

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.

Guia do colaborador