[GH-ISSUE #1936] 执行 top 命令,在窗口中按空格键时,窗口内容会向左偏移,右边会多出一片空白区域 #1160

Closed
opened 2026-02-27 00:02:27 +03:00 by kerem · 3 comments
Owner

Originally created by @iamlinix on GitHub (Nov 30, 2020).
Original GitHub issue: https://github.com/electerm/electerm/issues/1936

Electerm version:

1.9.24

Operating system(linux, macos, or windows7/8/10?):

Win 10

Expected Behavior

窗口应该正常显示

Can you reproduce the same behavior in other terminal:

NO

Current Behavior

在执行 top 命令时,按空格键刷新,tab页和左边栏,会整体向左偏移,右边会出现一小片空白区域,如图,在窗口全屏的情况下,左边栏,会整体被挡住,但是按回车刷新,则不会有这个问题

https://drive.google.com/file/d/1mBoml6S_zEn8YH8hhLwhQ5WNmLXyexpf/view?usp=sharing

Possible Solution

Steps to Reproduce

  1. 连接上任意 Linux 服务器,执行 top 命令
  2. 按空格键刷新

Context (Environment)

Detailed Description

Suggestions?

Originally created by @iamlinix on GitHub (Nov 30, 2020). Original GitHub issue: https://github.com/electerm/electerm/issues/1936 <!--- Provide some basic info --> ## Electerm version: 1.9.24 ## Operating system(linux, macos, or windows7/8/10?): Win 10 ## Expected Behavior <!--- Tell me what should happen --> 窗口应该正常显示 ## Can you reproduce the same behavior in other terminal: <!--- If same bahavior happens in other terminal, maybe it is supposed to be like this or not a problem of terminal app --> NO ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> 在执行 top 命令时,按空格键刷新,tab页和左边栏,会整体向左偏移,右边会出现一小片空白区域,如图,在窗口全屏的情况下,左边栏,会整体被挡住,但是按回车刷新,则不会有这个问题 https://drive.google.com/file/d/1mBoml6S_zEn8YH8hhLwhQ5WNmLXyexpf/view?usp=sharing ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. 连接上任意 Linux 服务器,执行 top 命令 2. 按空格键刷新 ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too -->
kerem 2026-02-27 00:02:27 +03:00
Author
Owner

@zxdong262 commented on GitHub (Dec 1, 2020):

我能复现,我也不知道咋回事

<!-- gh-comment-id:736361319 --> @zxdong262 commented on GitHub (Dec 1, 2020): 我能复现,我也不知道咋回事
Author
Owner

@iamlinix commented on GitHub (Dec 2, 2020):

我能复现,我也不知道咋回事

在设置里,把渲染类型,从 canvas 换成 dom,这个 bug 就消失了,所以应该跟渲染类型有关

<!-- gh-comment-id:737181791 --> @iamlinix commented on GitHub (Dec 2, 2020): > 我能复现,我也不知道咋回事 在设置里,把渲染类型,从 canvas 换成 dom,这个 bug 就消失了,所以应该跟渲染类型有关
Author
Owner

@zxdong262 commented on GitHub (Dec 19, 2021):

最新版本已经没有这个问题

<!-- gh-comment-id:997303886 --> @zxdong262 commented on GitHub (Dec 19, 2021): 最新版本已经没有这个问题
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#1160
No description provided.