xtermjs/xterm.js

Support DECBKM to remap backspace <-> delete

Offen

#3.041 geöffnet am 14.08.2020

 (7 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (1.574 Forks)batch import
good first issuehelp wantedtype/enhancement

Repository-Metriken

Stars
 (16.196 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 2T 10h) (16 gemergte PRs in 30 T)

Beschreibung

DECBKM to remap Backspace, Escape and Delete to their respective codes is not working at all. Quickly looking through code DECBKM is set to reset by default according to...

https://vt100.net/docs/vt510-rm/DECBKM.html

DEL issues an ESC keycode 27... which I now realise is not issuing the keycode but an ANSI sequence ESC issues keycode 27 Backspace issues keycode 127

This is troubling when you are trying to isolate what key is actually being pressed. And other odd behaviour when trying to parse things.

Code Sample

https://repl.it/@KelvinVerhey/decbkm-issue

Details

  • Chrome/Firefox/IE
  • Windows 10 Pro
  • xterm.js version: dunno... whatever repl.it is using

Question

https://stackoverflow.com/questions/63405913/xterm-js-decbkm-support-for-del-and-backspace

Contributor Guide