-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Labels
Area-BuildIssues pertaining to the build system, CI, infrastructure, metaIssues pertaining to the build system, CI, infrastructure, metaIssue-DocsIt's a documentation issue that really should be on MicrosoftDocs/Console-DocsIt's a documentation issue that really should be on MicrosoftDocs/Console-DocsNeeds-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.The new Windows Terminal.
Description
Tools needed
- VS2017 or higher with the following packages ("Workloads" tab in Visual Studio Installer) :
1.1Desktop Development with C++.
1.2Universal Windows Platform Development.
1.3Windows 10 SDK (10.0.18362.0).
1.4 If you're running VS2019, you'll also need to install eitherv141 Toolsetorv142 Toolset. - Git command-line tool.
- Nuget.exe (Needed in build step 3, can be found in
Terminal/dep/nuget).
Build Steps
git clonethis repository, not download .zip file.- Run
git submodule update --init --recursivein Terminal folder. - Run
nuget restore OpenConsole.sln(This step can be skipped, then Visual Studio should warn you that there are packages to restore - then restore). - Open
OpenConsole.slnwith Visual Studio. - Build whole solution(F7) with your platform(
x86/x64) andreleasemode, you may need to fix some build errors:
5.1 C2220 and code page warnings: All errors and warnings are encoding error of unicode characters, a helpful workaround is to modify corresponding file encoding toUTF-8 BOM(Notepad++ is recommended).
5.2 Errors insrc/tools/vtpipeterm/main.cpp: In addtion, you should also addu8prefix before string literals with unicode characters, e.g. line395,398,401and404.
Workaround
Try build with PR 458 or PR 549, both of them can build successfully.
Installation
Unfortunately, the generated .appx doesn't have any certificates, so it cannot be installed via double-click or powershell, the only way to install is to deploy the solution in VS.
- Open
Windows Settings-Upgrade & Security-For Developers, switchApp sourcestoDeveloper mode. - Right click on
CascadiaPackageproject (underSolution/Terminal), selectDeploy Solutionto install, then you'll findWindows Terminal (Preview)in start menu.
Settings
After open the terminal, you can't see any menu buttons.
Just press Ctrl + T to open a new tab, and you'll see a drop-down button in the tab bar.
Click it and select Settings, then you can modify the configuration via opened profiles.json.
Add WSL
- Create a new session in
profiles, with content copied fromprofiles/cmd. - Give it a new
guid. - Give it a new
name, such asWSL. - Specify its
commandlinetowsl.exe.
Then you'll find WSL in the drop-down menu of tab bar.
Here're sample codes:
{
"guid": "{09dc5eef-6840-4050-ae69-21e55e6a2e62}",
"name": "WSL",
"colorscheme": "Campbell",
"historySize": 9001,
"snapOnInput": true,
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"commandline": "wsl.exe",
"fontFace": "Consolas",
"fontSize": 12,
"acrylicOpacity": 0.75,
"useAcrylic": true,
"closeOnExit": false,
"padding": "0, 0, 0, 0"
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-BuildIssues pertaining to the build system, CI, infrastructure, metaIssues pertaining to the build system, CI, infrastructure, metaIssue-DocsIt's a documentation issue that really should be on MicrosoftDocs/Console-DocsIt's a documentation issue that really should be on MicrosoftDocs/Console-DocsNeeds-Tag-FixDoesn't match tag requirementsDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.The new Windows Terminal.