微軟 Microsoft 新版 Windows 終端機可以自訂介面了

微軟 Microsoft 新版 Windows 終端機可以自訂介面了

News from: iThome & Microsoft Windows Command Line Tools For Developers.

使用者可以在新的Windows終端機中自定義介面,包括字體、顏色主題和背景,甚至還能使用表情符號。 

Web site: https://devblogs.microsoft.com/commandline/introducing-windows-terminal/

Github: https://github.com/Microsoft/Terminal

Windows的命令列工具不再黑黑醜醜,微軟在Build開發者大會上,宣布釋出全新開源全功能Windows終端機(Terminal),這是一個現代高效的終端應用程式,可用來操作命令提示字元、PowerShell和WSLWindows Subsystem for Linux等殼層,將在今年夏天於Windows 10的Microsoft Store提供,但想嚐鮮的使用者,可以於GitHub中複製專案使用,目標在冬天時推出Windows終端機1.0。




軟終於為終端機加入了多頁籤功能,使用者現在可以開啟任意數量的分頁,每個分頁都可以連接到選擇的殼層或是應用程式,像是命令提示字元、PowerShell,也能在WSL執行Ubuntu、openSUSE以及Debian,甚至是透過SSH連接樹莓派也沒問題,微軟提到,這是使用者最常要求的終端機功能,他們在最新的終端機程式中實現。



而使用者第一眼看到Windows終端機與過去的命令列工具最大的差異,還是在介面的變化,整體介面新穎許多,Windows終端機使用GPU加速的DirectWrite文字渲染引擎,因此可以顯示更多元的文字、字形和符號,包括了中日韓統一表意文、表情符號、Powerline字體、圖標以及程式開發合字(Ligature)等,而微軟也提供了全新開源字體,供使用者使用,微軟表示,新的文字渲染引擎渲染文字的速度,要比過去的控制臺GDI引擎還要快上許多。

Windows終端機提供了許多配置選項,使用者可以對終端應用程式的外觀以及分頁進行控制,而這些配置會被以結構化文字檔案儲存,方便使用者或其他工具使用,Windows終端機允許多個配置文件存在,因此使用者可以為每個殼層、應用程式和工具創建多個配置文件,這些配置文件皆可以設定各自的字體樣式、大小與顏色主題,背景模糊與透明度等組合。




微軟說明之所以無法改進現有的Windows控制臺(Console),原因在於Windows控制臺需要對命令列工具和腳本等維持向後相容性,微軟已經對控制臺進行了部分的改進,但是無法在現有限制下,對使用者介面做出更多的改善,微軟認為,需要對控制臺架構進行破壞性改變,因此才重新打造了Windows終端機。

Windows終端機與控制臺能同時共存,當使用者直接執行Cmd或PowerShell等其他應用,則會開啟傳統控制實例,而使用者也不需要擔心,Windows控制臺也將在未來幾十年持續發布,以支援現有的應用程式。

--------------------------------------------------------------------------

Introducing Windows Terminal


We are beyond excited to announce Windows Terminal! Windows Terminal is a new, modern, fast, efficient, powerful, and productive terminal application for users of command-line tools and shells like Command Prompt, PowerShell, and WSL.
Windows Terminal will be delivered via the Microsoft Store in Windows 10 and will be updated regularly, ensuring you are always up to date and able to enjoy the newest features and latest improvements with minimum effort.

Windows Terminal key features

Multiple tabs

You’ve asked and we’ve listened! The most frequently requested feature for the Terminal is multiple tab support and we are SUPER excited to FINALLY be able to deliver this key feature. You will now be able to open any number of tabs, each connected to a command-line shell or app of your choice, e.g. Command Prompt, PowerShell, Ubuntu on WSL, a Raspberry Pi via SSH, etc.

Beautiful text


The Windows Terminal uses a GPU accelerated DirectWrite/DirectX-based text rendering engine. This new text rendering engine will display text characters, glyphs, and symbols present within fonts on your PC, including CJK ideograms, emoji, powerline symbols, icons, programming ligatures, etc. This engine also renders text much faster than the previous Console’s GDI engine!

You will also have the option of using our new font! We wanted to create a fun, new, monospaced font to enhance the modern look and feel of the Terminal. Not only will this font include programming ligatures, but it will also be open sourced and have its own repository. Stay tuned for more information on the new font project!

Settings and configurability


We have connected with so many command-line users who LOVE to customize their terminals and command-line applications. Windows Terminal provides many settings and configuration options that give you a great deal of control over the Terminal’s appearance and each of the shells/profiles that you can open as new tabs. Settings are stored in a structured text file making it easy for users and/or tools to configure.
Using Terminal’s configuration mechanism, you will be able to create multiple “profiles” for each shell/app/tool you want to use, whether it be PowerShell, Command Prompt, Ubuntu, or even SSH connections to Azure or IoT devices. These profiles can have their own combination of font styles and sizes, color themes, background blur/transparency levels, etc. You can now create your own custom-styled Terminal that is personalized to your unique taste!

When can I get my hands on it?


As of today, the Windows Terminal and Windows Console have been made open source and you can clone, build, run, and test the code from the repository on GitHub: https://github.com/Microsoft/Terminal
This summer in 2019, Windows Terminal previews will be released to the Microsoft Store for early adopters to use and provide feedback.
This winter in 2019, our goal is to launch Windows Terminal 1.0 and we’ll work with the community to ensure it’s ready before we release!

Wait… did you say open source?


Yes we did! We are excited to announce that we are open sourcing not just Windows Terminal, but also the Windows Console which hosts the command-line infrastructure in Windows and provides the traditional Console UX.
We can’t wait to work with you on improving and enhancing the Windows command-line experience!

This sounds awesome, but why couldn’t you just improve the existing Windows Console?


The primary goal of the Windows Console is to preserve backward compatibility with existing command-line tools, scripts, etc. While we’ve managed to introduce many key improvements to the Console’s features (e.g. adding VT and 24-bit color support, etc. see this blog post), we are unable to introduce further meaningful improvements to the Console’s UI without “breaking the world.”
Therefore, the time has come for a new, fresh approach.
Windows Terminal installs and runs alongside the existing in-box Windows Console application. If you run Cmd/PowerShell/etc. directly, they will start attached to a traditional Console instance in the exact same way they do today. This way, backward compatibility remains intact while providing you the option of experiencing Windows Terminal if/when you wish to do so. Windows Console will continue to ship within Windows for decades to come in order to support existing/legacy applications and systems.

Okay, but what about contributing to an existing open source terminal/app project instead?


We carefully explored this option during planning and determined our involvement in an existing project would require changing the project’s requirements and architecture in ways that would be too disruptive.
Instead, by creating a new open-source terminal application, and open-sourcing Windows Console, we can now invite the community to collaborate with us on improving the code and leveraging it in their respective projects.
We believe there is plenty of room in the market for new/different ideas about what a terminal can and should do and we aim to help the ecosystem of terminal (and related) applications flourish and grow through the introduction of new ideas, interesting approaches, and exciting innovations in this space.

I’m sold! How can I get involved?


Visit the repo at https://github.com/Microsoft/Terminal to clone, build, test, and run the Terminal! You can file bugs and share feedback with us and the community as well as fix issues and make improvements on GitHub.
Starting this summer, try installing and running Windows Terminal from the Microsoft Store. If you come across any bugs, share feedback either via the Feedback Hub or GitHub issues for detailed issues/discussions.
We are thrilled to be working with you! If you have any questions or feedback, don’t hesitate to reach out to Kayla @cinnamon_msft and/or Rich @richturn_ms on Twitter. We can’t wait to see what exciting improvements and features you make to Windows Terminal and Windows Console.




留言

熱門文章