mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 158 forks source link

删除一些中文符号时,光标的移动距离不正确 #88

Closed Leoongithub closed 6 years ago

Leoongithub commented 6 years ago

目前发现的有省略号(……)、破折号(——)、单双引号(‘’“”)。 试了各种字体和各种wsl的终端,好像都有问题。

goreliu commented 6 years ago

可以试下 -o FontRender=textout,不行的话再和-o Charwidth=ambig-wide组合(2 x 2)试试,再不行我也没办法了。

goreliu commented 6 years ago

我用了 -o FontRender=textout,效果是正常的。

baidushurufa_2018-3-22_18-29-3

Leoongithub commented 6 years ago

从命令行启动确实没问题了(带上-o FontRender=textout参数),但是怎么把这个选项写到配置里?我尝试把它加到minttyrc或者wsl-terminal.conf的mintty_options里都没有效果。

Leoongithub commented 6 years ago

另外透明度选择玻璃时会变成全白,是因为少安装了什么东西吗?

goreliu commented 6 years ago

可以加到mintty_options里边,我这正常。

mintty_options=-o FontRender=textout

改成玻璃后得重启下 mintty。

Leoongithub commented 6 years ago

按照这个配置试过了也不行,暂时用参数将就一下吧。 另外玻璃这个功能感觉不太好用,窗口后面是白色的话什么都看不清,也不支持获得焦点后变为不透明。

goreliu commented 6 years ago

你是不是用 wsl-terminal.lnk 启动的?这个快捷方式是不读配置文件的,要用 open-wsl.exe,它每次运行会更新这个快捷方式。

Leoongithub commented 6 years ago

不是,我的wsl-terminal.lnk的目标是 D:\wsl-terminal\bin\mintty.exe --wsl --rootfs=// --configdir "D:\wsl-terminal\etc" -i "D:\wsl-terminal\open-wsl.exe" -o FontRender=textout -t " " -e /bin/wslbridge -e SHELL="/bin/bash" -e LANG -t /bin/bash

goreliu commented 6 years ago

这个没问题,那就不知道了。