[GH-ISSUE #2695] 连接IBM AIX backspace按键问题 #1761

Closed
opened 2026-02-27 00:04:44 +03:00 by kerem · 14 comments
Owner

Originally created by @fanmasoft on GitHub (Nov 26, 2022).
Original GitHub issue: https://github.com/electerm/electerm/issues/2695

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

electerm-xx.xx.xx-win-x64-installer.exe

Platform detail (平台详情)

windows 7/10

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

连接IBM AIX backspace按键问题

1.连接IBM AIX(我的环境是AIX 6.1),在命令行下无法使用backspace键,按下会显示^?
2.在编辑器里面也无法使用backspace键,按下没有反应。

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

兼容IBM AIX系统

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

其他同类软件上暂时还没发现有类似问题

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

No response

Originally created by @fanmasoft on GitHub (Nov 26, 2022). Original GitHub issue: https://github.com/electerm/electerm/issues/2695 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-xx.xx.xx-win-x64-installer.exe ### Platform detail (平台详情) windows 7/10 ### What steps will reproduce the bug?(重新问题的详细步骤) 连接IBM AIX backspace按键问题 1.连接IBM AIX(我的环境是AIX 6.1),在命令行下无法使用backspace键,按下会显示^? 2.在编辑器里面也无法使用backspace键,按下没有反应。 ### What should have happened?(期望的结果) 兼容IBM AIX系统 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) 其他同类软件上暂时还没发现有类似问题 ### Additional information(其他任何相关信息) _No response_
kerem closed this issue 2026-02-27 00:04:44 +03:00
Author
Owner

@zxdong262 commented on GitHub (Nov 26, 2022):

删除键正常吗?

<!-- gh-comment-id:1327995461 --> @zxdong262 commented on GitHub (Nov 26, 2022): 删除键正常吗?
Author
Owner

@fanmasoft commented on GitHub (Nov 26, 2022):

DEL键也不正常。。。。按删除键会切换大小写。。。

<!-- gh-comment-id:1328003016 --> @fanmasoft commented on GitHub (Nov 26, 2022): DEL键也不正常。。。。按删除键会切换大小写。。。
Author
Owner

@zxdong262 commented on GitHub (Nov 26, 2022):

可以试试其他终端类型吗,设置里

<!-- gh-comment-id:1328021521 --> @zxdong262 commented on GitHub (Nov 26, 2022): 可以试试其他终端类型吗,设置里
Author
Owner

@fanmasoft commented on GitHub (Nov 27, 2022):

好的,我今天尝试一下所有的终端类型。。。这个问题是ssh2模块的问题吗?

<!-- gh-comment-id:1328143798 --> @fanmasoft commented on GitHub (Nov 27, 2022): 好的,我今天尝试一下所有的终端类型。。。这个问题是ssh2模块的问题吗?
Author
Owner

@zxdong262 commented on GitHub (Nov 27, 2022):

好的,我今天尝试一下所有的终端类型。。。这个问题是ssh2模块的问题吗?

我也不清楚,似乎更可能是xtermjs的问题

<!-- gh-comment-id:1328149696 --> @zxdong262 commented on GitHub (Nov 27, 2022): > 好的,我今天尝试一下所有的终端类型。。。这个问题是ssh2模块的问题吗? 我也不清楚,似乎更可能是xtermjs的问题
Author
Owner

@fanmasoft commented on GitHub (Nov 27, 2022):

所有终端类型我全测试了。。。主要测试了backspace按键和del按键。。其他没测。结果如下
1.终端类型xterm-256color
命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 输出 ^? DEL正常
2.终端类型xterm-new
命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 输出 ^? DEL正常
3.xterm-color
命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 无响应 DEL正常
4.xterm-vt220
命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 输出 ^? DEL正常
5.xterm
命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 输出 ^? DEL正常
6.linux
命令行 backspace 键无响应 DEL切换大小写 VIM编辑器中 backspace键 从光标所在位置往后删除跟DEL一样 DEL切换大小写
7.vt100
命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 在中间能删除 在行尾删除不了 DEL切换大小写
8.ansi
命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 从光标所在位置往后删除跟DEL一样 DEL切换大小写
9.rxvt
命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 从光标所在位置往后删除跟DEL一样 DEL正常

<!-- gh-comment-id:1328238203 --> @fanmasoft commented on GitHub (Nov 27, 2022): 所有终端类型我全测试了。。。主要测试了backspace按键和del按键。。其他没测。结果如下 1.终端类型xterm-256color 命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 输出 ^? DEL正常 2.终端类型xterm-new 命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 输出 ^? DEL正常 3.xterm-color 命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 无响应 DEL正常 4.xterm-vt220 命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 输出 ^? DEL正常 5.xterm 命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 输出 ^? DEL正常 6.linux 命令行 backspace 键无响应 DEL切换大小写 VIM编辑器中 backspace键 从光标所在位置往后删除跟DEL一样 DEL切换大小写 7.vt100 命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 在中间能删除 在行尾删除不了 DEL切换大小写 8.ansi 命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 从光标所在位置往后删除跟DEL一样 DEL切换大小写 9.rxvt 命令行 backspace 键输出 ^? DEL切换大小写 VIM编辑器中 backspace键 从光标所在位置往后删除跟DEL一样 DEL正常
Author
Owner

@fanmasoft commented on GitHub (Nov 27, 2022):

我测试了另外一款web terminal也这样 软件名【Aechoterm】
效果一模一样。。估计就是这个xtermjs的问题

<!-- gh-comment-id:1328240904 --> @fanmasoft commented on GitHub (Nov 27, 2022): 我测试了另外一款web terminal也这样 软件名【Aechoterm】 效果一模一样。。估计就是这个xtermjs的问题
Author
Owner

@fanmasoft commented on GitHub (Dec 11, 2022):

我在xterm.js 项目下提问了。。
https://github.com/xtermjs/xterm.js/issues/4278

有人提出了解决方案,作者修改了。
https://github.com/xtermjs/xterm.js/pull/4280/commits/6b09c1b576609e6f2dc2f70b9e1a57b4ccea0467

<!-- gh-comment-id:1345455852 --> @fanmasoft commented on GitHub (Dec 11, 2022): 我在[xterm.js](https://github.com/xtermjs/xterm.js) 项目下提问了。。 https://github.com/xtermjs/xterm.js/issues/4278 有人提出了解决方案,作者修改了。 https://github.com/xtermjs/xterm.js/pull/4280/commits/6b09c1b576609e6f2dc2f70b9e1a57b4ccea0467
Author
Owner

@fanmasoft commented on GitHub (Dec 11, 2022):

@zxdong262 我英文不是很好,用中文提问的,麻烦您帮忙给看一下,他解决的是我遇到的问题吗?

<!-- gh-comment-id:1345456009 --> @fanmasoft commented on GitHub (Dec 11, 2022): @zxdong262 我英文不是很好,用中文提问的,麻烦您帮忙给看一下,他解决的是我遇到的问题吗?
Author
Owner

@zxdong262 commented on GitHub (Dec 12, 2022):

@zxdong262 我英文不是很好,用中文提问的,麻烦您帮忙给看一下,他解决的是我遇到的问题吗?

应该只是修改文档,给了个样例代码,我找个时间试试

<!-- gh-comment-id:1346106433 --> @zxdong262 commented on GitHub (Dec 12, 2022): > @zxdong262 我英文不是很好,用中文提问的,麻烦您帮忙给看一下,他解决的是我遇到的问题吗? 应该只是修改文档,给了个样例代码,我找个时间试试
Author
Owner

@zxdong262 commented on GitHub (Dec 12, 2022):

@zxdong262 我英文不是很好,用中文提问的,麻烦您帮忙给看一下,他解决的是我遇到的问题吗?

样例代码似乎是加一个检测,按shift+退格,就转化为输出删除,似乎并没有从根源解决问题

<!-- gh-comment-id:1346133500 --> @zxdong262 commented on GitHub (Dec 12, 2022): > @zxdong262 我英文不是很好,用中文提问的,麻烦您帮忙给看一下,他解决的是我遇到的问题吗? 样例代码似乎是加一个检测,按shift+退格,就转化为输出删除,似乎并没有从根源解决问题
Author
Owner

@fanmasoft commented on GitHub (Dec 14, 2022):

@zxdong262 我英文不是很好,用中文提问的,麻烦您帮忙给看一下,他解决的是我遇到的问题吗?

样例代码似乎是加一个检测,按shift+退格,就转化为输出删除,似乎并没有从根源解决问题

嗯你说的有道理。。。。。只是做了一个按键映射而已。。

<!-- gh-comment-id:1350195909 --> @fanmasoft commented on GitHub (Dec 14, 2022): > > @zxdong262 我英文不是很好,用中文提问的,麻烦您帮忙给看一下,他解决的是我遇到的问题吗? > > 样例代码似乎是加一个检测,按shift+退格,就转化为输出删除,似乎并没有从根源解决问题 嗯你说的有道理。。。。。只是做了一个按键映射而已。。
Author
Owner

@caccwin commented on GitHub (Jul 26, 2023):

有人解决了这个问题吗?
我试了一下替换按键映射的方法,貌似只能做到光标显示往前移动但是实际没有删除字符,还是无法删除字符

<!-- gh-comment-id:1651271785 --> @caccwin commented on GitHub (Jul 26, 2023): 有人解决了这个问题吗? 我试了一下替换按键映射的方法,貌似只能做到光标显示往前移动但是实际没有删除字符,还是无法删除字符
Author
Owner

@zxdong262 commented on GitHub (Dec 25, 2023):

最新版已经解决

<!-- gh-comment-id:1868705142 --> @zxdong262 commented on GitHub (Dec 25, 2023): 最新版已经解决
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#1761
No description provided.