Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Windows的默认终端conhost.exe #16

Closed
12101111 opened this issue Jan 23, 2019 · 4 comments
Closed

Windows的默认终端conhost.exe #16

12101111 opened this issue Jan 23, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request good question Good, valuable question

Comments

@12101111
Copy link

🎉 我觉得这里可以这样改进!

Terminal,即「终端模拟器」。我们需要一个终端去和我们的 shell 进行交互。2018 年马上就要过去了,Windows 的自带终端依旧不支持 256 色彩

Windows的默认终端是支持24位色的,命令行程序使用conpty即可输出24位色

https://github.com/bitcrazed/24bit-color

这个仓库是2年前Windows Console和WSL开发者用来测试24位色输出的

效果图

image

https://github.com/Microsoft/console

这个仓库不仅能反馈Windows控制台issue,还包括了一个C++一个C#如何使用conpty的样例程序,以及最重要的,有一个更改Windows控制台配送方案的工具,可以使用iterm2的主题.

有必要加入原生终端的配置说明,毕竟conhost远快于electron.

@spencerwooo spencerwooo self-assigned this Jan 23, 2019
@spencerwooo spencerwooo added enhancement New feature or request good question Good, valuable question labels Jan 23, 2019
@spencerwooo
Copy link
Owner

可以,ConPTY 的问题早就想加了,有时间加上。对了,字体有更好的解决方案吗?(除了用 Sarasa Gothic)因为我用了 Powerlevel9k,这个没有 Nerd Font 的加持有些字符显示就有问题。

@spencerwooo
Copy link
Owner

spencerwooo commented Jan 23, 2019

这部分我更新了一些内容:默认的 WSL 终端模拟器,不知道有没有讲全。如果您还有补充的地方,欢迎直接 PR,毕竟只提 issue 没办法直接算在 Contributor 里面。@12101111

@12101111
Copy link
Author

字体暂时没有更好的解决方案.很多等宽字体在显示特殊全角符号后光标就会错位.
microsoft/terminal#353
在这方面浏览器排版引擎做的更好

@spencerwooo
Copy link
Owner

@12101111 了解了,感谢~ 这里您还有补充的内容吗?没有的话我就把这个 issue 关掉了

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request good question Good, valuable question
Projects
None yet
Development

No branches or pull requests

2 participants