xtermjs/xterm.js

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

Open

#3,600 opened on Jan 8, 2022

View on GitHub
 (10 comments) (9 reactions) (0 assignees)TypeScript (1,574 forks)batch import
area/mobilehelp wantedtype/bug

Repository metrics

Stars
 (16,196 stars)
PR merge metrics
 (Avg merge 2d 10h) (16 merged PRs in 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.

Contributor guide