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

确保等宽字体可以设置,并修复 C-x o 无法切换窗口的问题 #4

Closed manateelazycat closed 1 year ago

manateelazycat commented 1 year ago

发了两个补丁:

  1. ensure_font_exists 这个函数的作用: 如果用户设置的字体不存在, 就选择系统等宽字体, 确保终端渲染没有问题
  2. 移除 C-x 的绑定, 这样会导致 C-x o 这样的默认按键无法使用, 用户分屏以后没法切换窗口, EAF有机制可以转发按键序列, 比如用 C-c C-x 来发送 C-x 序列
mumu-lhl commented 1 year ago

Thanks :)