xtermjs/xterm.js

Support DECBKM to remap backspace <-> delete

Open

#3,041 opened on Aug 14, 2020

View on GitHub
 (6 comments) (0 reactions) (0 assignees)TypeScript (16,196 stars) (1,574 forks)batch import
good first issuehelp wantedtype/enhancement

Description

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