mumu-lhl / eaf-pyqterminal

A terminal written in PyQt6 for the Emacs Application Framework.
GNU General Public License v3.0
47 stars 3 forks source link

分屏后, 切换buffer, 终端绘制会出现花屏现象 #18

Closed manateelazycat closed 1 year ago

manateelazycat commented 1 year ago

截图 2023-06-17 20-24-46

重现方式:

  1. 打开终端, 输入 ls -al
  2. 分屏
  3. 然后来回切换标签, 多切几次就会发生花屏现象
mumu-lhl commented 1 year ago

试试 89b9c54,应该能修复这个问题

manateelazycat commented 1 year ago

截图 2023-06-17 23-24-01 截图 2023-06-17 23-35-19 截图 2023-06-17 23-35-28

重现方式:

  1. 打开EAF文件管理器
  2. 打开终端, 输入 ls -al
  3. 分屏
  4. 然后来回切换标签, 多切几次就会发生终端没有内容或者终端窗口显示相邻文件管理器的内容
manateelazycat commented 1 year ago

EAF中, 当一个隐藏的 view 重新显示时, 会调用 Buffer 的 some_view_show 接口。 我感觉这个bug需要自定义 some_view_show 的实现, some_view_show 里面要调用 screen 重新渲染的代码。

mumu-lhl commented 1 year ago

试试 6a5f7e5

manateelazycat commented 1 year ago

截图 2023-06-17 23-24-01 截图 2023-06-17 23-35-19 截图 2023-06-17 23-35-28

重现方式:

  1. 打开EAF文件管理器
  2. 打开终端, 输入 ls -al
  3. 分屏
  4. 然后来回切换标签, 多切几次就会发生终端没有内容或者终端窗口显示相邻文件管理器的内容

更新最新版依然有这个问题。

提供一个线索, 当遇到这个问题的时候, ls -al 一下, 或者 clear 一下, 上下两个终端的内容都会恢复正常。

mumu-lhl commented 1 year ago

现在应该已经没问题了

manateelazycat commented 1 year ago

这个好了