xtermjs/xterm.js

Support DECBKM to remap backspace <-> delete

开放

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

 (7 条评论) (0 个反应) (0 位负责人)TypeScript (1,574 个派生)batch import
good first issuehelp wantedtype/enhancement

仓库指标

星标
 (16,196 个星标)
PR 合并指标
 (平均合并 2天 10小时) (30 天内合并 16 个 PR)

描述

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

贡献者指南