[GH-ISSUE #4150] backspace显示为K或者D #2869

Closed
opened 2026-02-27 00:54:33 +03:00 by kerem · 2 comments
Owner

Originally created by @cpseell on GitHub (Jan 7, 2026).
Original GitHub issue: https://github.com/electerm/electerm/issues/4150

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-2.3.151-win-x64-installer.exe

Platform detail (平台详情)

windows11 Microsoft Windows NT 10.0.22621.0 x64

What steps will reproduce the bug?(重现问题的详细步骤)

设置-->终端,已经设置“终端backspace序列”为“^?”,默认终端类型为“xterm-256color”。
在关键词高亮中,输入正则表达式(我输入的 红色 \b(info|INFO|debug|DEBUG|SUCCESS|success|Redis|[T|t]rue|TRUE|[F|f]alse|FALSE|)\b),连接服务器后,输入任意字符(abcdefghijklm)后退格键删除,每按一次就出现“D D”,如:abcdefghijklmD DD DD DD DD DD DD DD D,默认终端类型选为其他模式后,还可能出现(退格键被映射为K):abcdefghijklmKKKKKKKKKKK。
删除所有关键词高亮正则表达式后,按退格键能正常删除和显示字符。

What should have happened?(期望的结果)

backspace删除字符时不显示成D或者K

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

No response

Originally created by @cpseell on GitHub (Jan 7, 2026). Original GitHub issue: https://github.com/electerm/electerm/issues/4150 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-2.3.151-win-x64-installer.exe ### Platform detail (平台详情) windows11 Microsoft Windows NT 10.0.22621.0 x64 ### What steps will reproduce the bug?(重现问题的详细步骤) 设置-->终端,已经设置“终端backspace序列”为“^?”,默认终端类型为“xterm-256color”。 在关键词高亮中,输入正则表达式(我输入的 红色 \b(info|INFO|debug|DEBUG|SUCCESS|success|Redis|[T|t]rue|TRUE|[F|f]alse|FALSE|)\b),连接服务器后,输入任意字符(abcdefghijklm)后退格键删除,每按一次就出现“D D”,如:abcdefghijklmD DD DD DD DD DD DD DD D,默认终端类型选为其他模式后,还可能出现(退格键被映射为K):abcdefghijklmKKKKKKKKKKK。 删除所有关键词高亮正则表达式后,按退格键能正常删除和显示字符。 ### What should have happened?(期望的结果) backspace删除字符时不显示成D或者K ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) _No response_
kerem closed this issue 2026-02-27 00:54:33 +03:00
Author
Owner

@cpseell commented on GitHub (Jan 7, 2026):

退格键在其他软件中可以正常删除字符

<!-- gh-comment-id:3717886656 --> @cpseell commented on GitHub (Jan 7, 2026): 退格键在其他软件中可以正常删除字符
Author
Owner

@zxdong262 commented on GitHub (Jan 7, 2026):

参考 https://github.com/electerm/electerm/wiki/Terminal-keywords-highlight-regular-expression-exmaples

正则不要加斜杠

<!-- gh-comment-id:3717906444 --> @zxdong262 commented on GitHub (Jan 7, 2026): 参考 https://github.com/electerm/electerm/wiki/Terminal-keywords-highlight-regular-expression-exmaples 正则不要加斜杠
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#2869
No description provided.