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

Don't draw cursor when current position is less than the bottom position #12

Closed manateelazycat closed 1 year ago

manateelazycat commented 1 year ago

https://github.com/mumu-lhl/eaf-pyqterminal/issues/11

修复这个 issue, 光标不在可视区域的时候隐藏光标。

测试方式:

  1. 切换到一个大目录
  2. 执行 ls -al 命令
  3. 向上滚动屏幕后, 光标隐藏

没有应用补丁之前, 光标一直显示。

这个补丁也测试了编辑器的情况, 终端编辑器打开时, 光标一直显示。

mumu-lhl commented 1 year ago

Oh, sorry! 我刚刚在看 #11 时还没有这个补丁,所以我在 7b490fc 也做到了同样的效果

manateelazycat commented 1 year ago

和这个补丁重复了 https://github.com/mumu-lhl/eaf-pyqterminal/commit/7b490fc7ad56699a0a903f411c58ac8526bbdaec

manateelazycat commented 1 year ago

Oh, sorry! 我刚刚在看 #11 时还没有这个补丁,所以我在 7b490fc 也做到了同样的效果

没事, 实现就好, 谁写补丁都一样。 ;)

期待 https://github.com/mumu-lhl/eaf-pyqterminal/issues/9 这个功能完成, 滚动操作就有价值了。