xtermjs/xterm.js

Support DECBKM to remap backspace <-> delete

Open

#3,041 创建于 2020年8月14日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)TypeScript (16,196 star) (1,574 fork)batch import
good first issuehelp wantedtype/enhancement

描述

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

贡献者指南