![704d6c5b91eb51b59fe1895ef0a93bb3.png](https://i-blog.csdnimg.cn/blog_migrate/8990221d9114b0dc21822c7ea5eec856.jpeg)
微软在 Build 开发者大会上公布了新款命令行界面:Windows Terminal
![b377039a14203cf3c059615c5b359115.gif](https://i-blog.csdnimg.cn/blog_migrate/fe64ccbe8dd6895f86f02781cdab3925.gif)
什么是 Windows Terminal ?
Windows Terminal 是微软推出的新版命令行界面应用程序、支持多标签、分割窗口、快捷键完整的 Unicode 字符支持等多项功能;
最重要的是:它被设计为访问 PowerShell、Cmd 和 Windows Linux 子系统(WSL)等环境。另外:Windows Terminal 还支持表情符号和基于 GPU 的文本呈现,一个面向命令行用户的全新,现代,功能丰富,高效的终端应用程序。
微软还给 Windows Terminal 加入了很多细节功能,让它更美观。
Windows Terminal 使用的是基于 DirectWrite/DirectX 的 GPU 加速文本渲染引擎。
![8be351e0cfeb9208bb06204af6cbc19a.gif](https://i-blog.csdnimg.cn/blog_migrate/fbe4b9a0d63482c6b0d765843b7b258e.gif)
Windows Terminal 新工具计划在6月中旬推出,但不会立刻取代老版本的命令提示符,保证用户的兼容性,不过这是微软在 Windows 上改进开发者环境的最新的努力。将有意的把 Windows Terminal 设置成为 Windows 默认的命令行工具。
开源地址:https://github.com/microsoft/Terminal
![143bdf0a20ea99a4d96ed12ea81ef0e8.png](https://i-blog.csdnimg.cn/blog_migrate/e05a5c2a5aa07d81dc329167eeae199c.jpeg)
现在就能上手
如果你已经迫不及待的想要试试 Windows Terminal 的话,可以通过下面的 GitHub 链接、下载、构建和运行命令行工具。
https://github.com/microsoft/Terminal
需要注意的是,该项目使用 Git 子模块处理一些依赖项,想要确保子模块更新,请在构建器使用如下命令检查:
git submodule update --init --recursive
其中,OpenConsole.sln可在Visual Studio中构建,或者使用MSBuild通过命令行来构建:
nuget restore OpenConsole.slnmsbuild OpenConsole.sln
在 /tools 文件中,还有一些脚本,能够用于自动化构建和运行测试的过程。
![caa194cfd2150663f70aede1f8fa4a8c.png](https://i-blog.csdnimg.cn/blog_migrate/f4043ea7baece41f2f3acb73def243a9.jpeg)
![67d0c987b9cc1f5b33d5d73493f14c4d.png](https://i-blog.csdnimg.cn/blog_migrate/2cd4d9f2df41c52f1d68508c9c7ced7c.jpeg)