Skip to content
zcgPublic
forked from microsoft/terminal

About

The new Windows Terminal and the original Windows console host, all in the same place!

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

 
 

Latest commit

 

History

5,137 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

切换到中文

Windows Terminal project logos and branding image

Terminal Build Status

Welcome to the Windows Terminal, Console and Command-Line repo

Important

This is a personal fork of Windows Terminal. It follows the upstream main branch and adds a set of extra features and fixes on top of it. It installs alongside the official Windows Terminal rather than replacing it, so you can keep both. See What's different in this build for a plain-language tour, or jump straight to Download and install to grab a ready-made installer from the Releases page. 中文说明请点右上角的 中文 按钮。

Table of Contents

This repository contains the source code for:

Related repositories include:


What's different in this build

This fork tracks the upstream main branch and adds a handful of extra features and fixes on top of it. Everything described below is already included in the packages published on the Releases page — you do not need to build anything yourself.

Tab bar position

The tab strip is no longer stuck at the top. You can move it to the bottom of the window, or to the left or right side, where it turns into a vertical list — much easier to scan when you have a lot of tabs open.

Left (vertical) Right (vertical)
Tab bar on the left Tab bar on the right

How to use it: open Settings > Appearance > Tab bar position and pick Top, Bottom, Left (vertical) or Right (vertical). The same option is called tabPosition in settings.json. The screenshot below has Bottom selected, and the tab strip has already moved to the bottom of the window.

Tab bar position setting

There is also a toggleVerticalTabs action if you would rather use a shortcut: bind it to a key of your choice and press it to flip between the horizontal and vertical layouts. It has no default shortcut.

Window background material

The window frame, the tab row and the settings pages can use Mica, Mica Alt or acrylic, so Terminal blends in with the rest of Windows instead of sitting on a flat block of colour.

How to use it: open Settings > Appearance > Application background material and pick a style. The choices are Default, Solid, Mica, Mica Alt, Acrylic and Acrylic Dark. The same option is called applicationBackgroundMaterial in settings.json.

Application background material setting

This setting only affects the window, the tab row and the settings UI. It does not change the terminal content area. If you want the content to share the window backdrop, set the profile's terminal background material to "Use window material" (backgroundMaterial set to useWindowMaterial).

No more ghost characters in transparent windows

With transparency or acrylic turned on, scrolling and switching used to leave faint leftover characters and smears behind. That is fixed. The same round of work also took care of text that landed in the wrong place at non-standard display scaling, leftovers while scrolling, and scroll margins leaking between pages and between the main and alternate screen buffers.

[Screenshot: before and after]

Better Chinese and symbol alignment

Characters from the Private Use Area are now treated as narrow no matter which ambiguous-width policy is selected, so lines that mix Chinese with box-drawing characters and symbols line up properly.

Right-to-left text

Arabic, Hebrew and other right-to-left scripts are shaped correctly, and mixed-direction lines are broken at proper word and script boundaries.

Drag tabs on or off

Settings > Interaction > Reorder and tear out tabs by dragging controls whether tabs can be dragged to reorder them, or pulled out into a new window. When Terminal is running as administrator or as another user, the switch is turned off automatically and a note explains why — dragging tabs in that situation would crash the window. The "move tab" actions still work.

[Screenshot: tab drag setting]

Smoother settings pages

Moving between pages in the settings UI no longer stutters. The built-in page transition was replaced with a simple fade, which stays smooth even while the next page is still being put together.

True colour in every new session

New sessions start with COLORTERM=truecolor in their environment, so tools that look for it — ls, bat and plenty of other command-line programs — produce full 24-bit colour output.

Filled-in Chinese UI

Missing Simplified Chinese strings in the settings UI were filled in, dead entries were removed, and a leftover text key that could crash a settings page was fixed.


Download and install

There is exactly one way to get this build: download the archive from the Releases page and install it from there. It is not published to the Microsoft Store, and it is not in winget, Chocolatey or Scoop — those install the official Microsoft build, not this one.

  1. Open the latest release and, under Assets, download WindowsTerminal-Dev-<version>-x64.zip.
  2. Unzip it anywhere you like.
  3. In PowerShell, from inside the extracted folder, run .\Add-AppDevPackage.ps1. It trusts the certificate, installs the framework dependency and installs the app itself, in that order.

If PowerShell refuses to run the script, allow it for the current session first:

Set-ExecutionPolicy -Scope Process Bypass

Installing by hand

If you would rather do each step yourself, the order matters — the framework dependency has to be in place before the app:

  1. Trust the certificate: right-click the .cer file, choose Install Certificate, select Local Machine, then Place all certificates in the following store > Browse > Trusted People.
  2. Install the dependency: Add-AppxPackage .\Dependencies\x64\Microsoft.UI.Xaml.2.8.appx (skip this if your system already has Microsoft.UI.Xaml 2.8).
  3. Install the app: Add-AppxPackage .\CascadiaPackage_<version>_x64.msixbundle

Important

This build installs alongside the official Windows Terminal — it does not replace it. Both can be installed and used at the same time, and they keep separate settings. In the Start menu this one is called Terminal Dev, and its icon has a green DEV badge in the corner, so the two are easy to tell apart. Uninstall it at any time from Settings > Apps > Installed apps — the official build stays where it is.

Note

The package is signed with a self-signed test certificate rather than a Microsoft Store certificate, which is why the certificate step is needed. Only install it if you are comfortable trusting a certificate that was generated on the machine that built the package.


Terminal & Console Overview

Please take a few minutes to review the overview below before diving into the code:

Windows Terminal

Windows Terminal is a new, modern, feature-rich, productive terminal application for command-line users. It includes many of the features most frequently requested by the Windows command-line community including support for tabs, rich text, globalization, configurability, theming & styling, and more.

The Terminal will also need to meet our goals and measures to ensure it remains fast and efficient, and doesn't consume vast amounts of memory or power.

The Windows Console Host

The Windows Console host, conhost.exe, is Windows' original command-line user experience. It also hosts Windows' command-line infrastructure and the Windows Console API server, input engine, rendering engine, user preferences, etc. The console host code in this repository is the actual source from which the conhost.exe in Windows itself is built.

Since taking ownership of the Windows command-line in 2014, the team added several new features to the Console, including background transparency, line-based selection, support for ANSI / Virtual Terminal sequences, 24-bit color, a Pseudoconsole ("ConPTY"), and more.

However, because Windows Console's primary goal is to maintain backward compatibility, we have been unable to add many of the features the community (and the team) have been wanting for the last several years including tabs, unicode text, and emoji.

These limitations led us to create the new Windows Terminal.

You can read more about the evolution of the command-line in general, and the Windows command-line specifically in this accompanying series of blog posts on the Command-Line team's blog.

Shared Components

While overhauling Windows Console, we modernized its codebase considerably, cleanly separating logical entities into modules and classes, introduced some key extensibility points, replaced several old, home-grown collections and containers with safer, more efficient STL containers, and made the code simpler and safer by using Microsoft's Windows Implementation Libraries - WIL.

This overhaul resulted in several of Console's key components being available for re-use in any terminal implementation on Windows. These components include a new DirectWrite-based text layout and rendering engine, a text buffer capable of storing both UTF-16 and UTF-8, a VT parser/emitter, and more.

Creating the new Windows Terminal

When we started planning the new Windows Terminal application, we explored and evaluated several approaches and technology stacks. We ultimately decided that our goals would be best met by continuing our investment in our C++ codebase, which would allow us to reuse several of the aforementioned modernized components in both the existing Console and the new Terminal. Further, we realized that this would allow us to build much of the Terminal's core itself as a reusable UI control that others can incorporate into their own applications.

The result of this work is contained within this repo and is published as the Windows Terminal application. For this fork, that means the packages on this repository's releases page.


Resources

For more information about Windows Terminal, you may find some of these resources useful and interesting:


FAQ

I built and ran the new Terminal, but it looks just like the old console

Cause: You're launching the incorrect solution in Visual Studio.

Solution: Make sure you're building & deploying the CascadiaPackage project in Visual Studio.

Note

OpenConsole.exe is just a locally-built conhost.exe, the classic Windows Console that hosts Windows' command-line infrastructure. OpenConsole is used by Windows Terminal to connect to and communicate with command-line applications (via ConPty).


Documentation

All project documentation is located at aka.ms/terminal-docs. If you would like to contribute to the documentation, please submit a pull request on the Windows Terminal Documentation repo.


Contributing

We are excited to work alongside you, our amazing community, to build and enhance Windows Terminal!

BEFORE you start work on a feature/fix, please read & follow our Contributor's Guide to help avoid any wasted or duplicate effort.

Communicating with the Team

The easiest way to communicate with the team is via GitHub issues.

Please file new issues, feature requests and suggestions, but DO search for similar open/closed preexisting issues before creating a new issue.

If you would like to ask a question that you feel doesn't warrant an issue (yet), please reach out to us via Twitter:

Developer Guidance

Prerequisites

You can configure your environment to build Terminal in one of two ways:

Using WinGet configuration file

After cloning the repository, you can use a WinGet configuration file to set up your environment. The default configuration file installs Visual Studio 2026 Community & rest of the required tools. There are two other variants of the configuration file available in the .config directory for Enterprise & Professional editions of Visual Studio 2026. To run the default configuration file, you can either double-click the file from explorer or run the following command:

winget configure .config\configuration.winget

Manual configuration

Building the Code

OpenConsole.slnx may be built from within Visual Studio or from the command-line using a set of convenience scripts & tools in the /tools directory:

Building in PowerShell

Import-Module .\tools\OpenConsole.psm1
Set-MsBuildDevEnvironment
Invoke-OpenConsoleBuild

Building in Cmd

.\tools\razzle.cmd
bcz

Running & Debugging

To debug the Windows Terminal in VS, right click on CascadiaPackage (in the Solution Explorer) and go to properties. In the Debug menu, change "Application process" and "Background task process" to "Native Only".

You should then be able to build & debug the Terminal project by hitting F5. Make sure to select either the "x64" or the "x86" platform - the Terminal doesn't build for "Any Cpu" (because the Terminal is a C++ application, not a C# one).

👉 You will not be able to launch the Terminal directly by running the WindowsTerminal.exe. For more details on why, see #926, #4043

Coding Guidance

Please review these brief docs below about our coding practices.

👉 If you find something missing from these docs, feel free to contribute to any of our documentation files anywhere in the repository (or write some new ones!)

This is a work in progress as we learn what we'll need to provide people in order to be effective contributors to our project.


Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

About

The new Windows Terminal and the original Windows console host, all in the same place!

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages