[GH-ISSUE #4170] 删除输入法没上屏的内容时,会同步删除已经在终端上的内容 #2884

Open
opened 2026-02-27 00:54:36 +03:00 by kerem · 10 comments
Owner

Originally created by @jianwei2 on GitHub (Jan 29, 2026).
Original GitHub issue: https://github.com/electerm/electerm/issues/4170

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

electerm-xx.xx.xx-mac-arm64.dmg

Platform detail (平台详情)

mac os(ARM)

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

大家有这种情况吗

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

能修复这个问题

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

试了自带终端,是正常的。

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

No response

Originally created by @jianwei2 on GitHub (Jan 29, 2026). Original GitHub issue: https://github.com/electerm/electerm/issues/4170 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-xx.xx.xx-mac-arm64.dmg ### Platform detail (平台详情) mac os(ARM) ### What steps will reproduce the bug?(重现问题的详细步骤) 大家有这种情况吗 ### What should have happened?(期望的结果) 能修复这个问题 ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) 试了自带终端,是正常的。 ### Additional information(其他任何相关信息) _No response_
Author
Owner

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

什么输入法

<!-- gh-comment-id:3815158533 --> @zxdong262 commented on GitHub (Jan 29, 2026): 什么输入法
Author
Owner

@jianwei2 commented on GitHub (Jan 29, 2026):

自带的拼音输入法,清歌输入法,搜狗五笔都 不行

<!-- gh-comment-id:3815296004 --> @jianwei2 commented on GitHub (Jan 29, 2026): 自带的拼音输入法,清歌输入法,搜狗五笔都 不行
Author
Owner

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

我用搜狗拼音没有复现这个问题

<!-- gh-comment-id:3815574350 --> @zxdong262 commented on GitHub (Jan 29, 2026): 我用搜狗拼音没有复现这个问题
Author
Owner

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

怎么删除,按退格键还是删除键?

<!-- gh-comment-id:3815575244 --> @zxdong262 commented on GitHub (Jan 29, 2026): 怎么删除,按退格键还是删除键?
Author
Owner

@jianwei2 commented on GitHub (Jan 29, 2026):

backspace

<!-- gh-comment-id:3815623377 --> @jianwei2 commented on GitHub (Jan 29, 2026): backspace
Author
Owner

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

最新版吗?

<!-- gh-comment-id:3816655723 --> @zxdong262 commented on GitHub (Jan 29, 2026): 最新版吗?
Author
Owner

@jianwei2 commented on GitHub (Feb 2, 2026):

是的,我更新到最新版本了。我能打印日志,或者怎么协助你。 印象中,之前没这个问题,也可能之前没怎么输入中文没发现这个问题。 最早用windows是没问题的。

<!-- gh-comment-id:3833481210 --> @jianwei2 commented on GitHub (Feb 2, 2026): 是的,我更新到最新版本了。我能打印日志,或者怎么协助你。 印象中,之前没这个问题,也可能之前没怎么输入中文没发现这个问题。 最早用windows是没问题的。
Author
Owner

@zxdong262 commented on GitHub (Feb 2, 2026):

是的,我更新到最新版本了。我能打印日志,或者怎么协助你。 印象中,之前没这个问题,也可能之前没怎么输入中文没发现这个问题。 最早用windows是没问题的。

目前我也没有思路

<!-- gh-comment-id:3833588311 --> @zxdong262 commented on GitHub (Feb 2, 2026): > 是的,我更新到最新版本了。我能打印日志,或者怎么协助你。 印象中,之前没这个问题,也可能之前没怎么输入中文没发现这个问题。 最早用windows是没问题的。 目前我也没有思路
Author
Owner

@Seraphli commented on GitHub (Feb 3, 2026):

我也发现了有这样的情况, 还挺烦人的.

<!-- gh-comment-id:3840426671 --> @Seraphli commented on GitHub (Feb 3, 2026): 我也发现了有这样的情况, 还挺烦人的.
Author
Owner

@tinyhare commented on GitHub (Feb 26, 2026):

同样的问题,顶上有个提示:Try Shift + Backspace :

Image

按Shift + Backspace的效果是:只删已经上屏的字符,不删中文输入法内的拼音

发现按住control 或 option 或 command 再按backspace 就是正常的

stty的内容:

~ % stty -a                             
speed 38400 baud; 32 rows; 124 columns;
lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl
        -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo
        -extproc
iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -iutf8
        -ignbrk brkint -inpck -ignpar -parmrk
oflags: opost onlcr -oxtabs -onocr -onlret
cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow
        -dtrflow -mdmbuf
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V;
        min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
        stop = ^S; susp = ^Z; time = 0; werase = ^W;
<!-- gh-comment-id:3967839906 --> @tinyhare commented on GitHub (Feb 26, 2026): 同样的问题,顶上有个提示:Try Shift + Backspace : <img width="1856" height="292" alt="Image" src="https://github.com/user-attachments/assets/f29ba77b-fb21-4c71-8fb9-562f5d1fe3c4" /> 按Shift + Backspace的效果是:只删已经上屏的字符,不删中文输入法内的拼音 发现按住control 或 option 或 command 再按backspace 就是**正常的** stty的内容: ``` ~ % stty -a speed 38400 baud; 32 rows; 124 columns; lflags: icanon isig iexten echo echoe echok echoke -echonl echoctl -echoprt -altwerase -noflsh -tostop -flusho pendin -nokerninfo -extproc iflags: -istrip icrnl -inlcr -igncr ixon -ixoff ixany imaxbel -iutf8 -ignbrk brkint -inpck -ignpar -parmrk oflags: opost onlcr -oxtabs -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>; eol2 = <undef>; erase = ^?; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W; ```
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#2884
No description provided.