Questions tagged [windows-terminal]

Microsoft's official new terminal app for Windows, released May 2019.

Windows Terminal is the Terminal app for Windows made by Microsoft, released in May 2019. See the Windows Terminal GitHub

348 questions
2
votes
0 answers

error 0xc0000142 when debug with visual studio 2022 and Windows Terminal

I'm using visual studio 2022 on the platform of windows 11 version 22h2. In the current upgrade 22621.675, Windows Terminal became the default terminal of Windows as well as of visual studio 2022. Now, when I debug in vs2022, if I shut down the…
Oliver Yu
  • 99
  • 5
2
votes
1 answer

How to launch Windows Terminal with Multiple Tabs?

I am attempting to use startupActions to launch a second tab when Windows Terminal launches with no luck. My default shell is WSL, so I have the following in my settings.json: "startupActions": "; new-tab -p PowerShell", I've tried it without the…
Stephan
  • 345
  • 2
  • 14
2
votes
1 answer

How do I create a new custom profile in Windows Terminal from a Powershell script?

I'm creating a PowerShell script to help me install and configure software on new PCs. After issuing a PowerShell command to install Windows Terminal, I would like to add additional commands that set up custom profiles. It's easy enough to use the…
Craig
  • 855
  • 1
  • 9
  • 14
2
votes
1 answer

powershell + oh my posh + pure theme - what is the disk glyph means in git directory

in powershell with oh my posh installed and the pure theme activated, when the working tree is clean, I see a floppy disk glyph with a number after it like the picture below: Anyone knows what the disk glyph and the number beside it means?
Elder1360
  • 83
  • 1
  • 7
2
votes
1 answer

Edit Windows Terminal profiles settings JSON from PowerShell

I am working on a PowerShell script that creates a Fedora WSL using docker, it all works, but I cannot get to work the code part which sets the icon in the settings.json file. Relevant part of the JSON: "profiles": { "defaults": {}, …
Okazakee
  • 23
  • 4
2
votes
0 answers

Why does subprocess.run enable Windows' terminal cursor controls in Python?

Enabling terminal sequences on Windows 10+ using Python works like so: >>> print("Hello world" + "\x1b\x5b2F") # This doesn't do much >>> import subprocess >>> subprocess.run("", shell=True) # Somehow enables terminal sequences (dark magic) >>>…
Bharel
  • 23,672
  • 5
  • 40
  • 80
2
votes
1 answer

Keep Windows Terminal tab open after invoked WSL command

I'm trying to open a WSL (Ubuntu) tab in Windows Terminal, and then run a command in that tab using WSL. I use the following PowerShell command for that: wt new-tab -p "WSL (Ubuntu)" wsl echo "hallo" The problem is, after echo has run, the tab…
2
votes
1 answer

How to make a GUI for command-line application in Python?

I am trying to make a command-line application using Python. I have developed the program, but I see that my program gets executed in cmd.exe, which seems to be the default for that kind of programs. But I would like a finer GUI, like that of…
who
  • 23
  • 1
  • 6
2
votes
1 answer

Adding MSYS to windows terminal

I added bash on windows to windows terminal by editing the settings.json file, when I try to compile a simple hello world written in c++ it throws an error that gcc or g++ is not detected How to properly add MSYS bash terminal so that I can compile…
RAT
  • 31
  • 5
2
votes
1 answer

How to open Windows Terminal in VS Code integrated mode

I have added below lines to Terminal › Integrated › Profiles: Windows: "terminal.integrated.profiles.windows": { "WTP": { "path": "C:\\Users\\***\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe", } }, …
AmiNadimi
  • 5,129
  • 3
  • 39
  • 55
2
votes
1 answer

How to fix the error 0x800700c1 when launching `powershell.exe' in Windows Terminal?

Recently I got the following error in my Windows Terminal: [error 0x800700c1 when launching "C:\Users\Dry-C Desktop\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe"] How do Image of the Issue - error 0x800700c1 How…
2
votes
0 answers

Only open some profiles with elevated permissions is Windows Terminal

I have a shortcut that I use to open Windows Terminal with elevated privileges. This is preferred 9 time out of 10 because I perform a lot of tasks that need admin privileges. The problem I am having is that when I open a new terminal tab for my WSL…
2
votes
2 answers

Executing additional cmdlets after a Job was fired off

Suppose I have a simple Job that starts off like this: $job = Start-Job -ArgumentList 1, 2 -ScriptBlock { $var1 = $args[0] $var2 = $args[1] $var3 = $var1 + $var2 Write-Host $var3 } Now suppose that I want to…
RecursiveCall
  • 482
  • 3
  • 13
2
votes
1 answer

Julia REPL -- Legacy Console Mode Issue

I've had trouble using Julia in Windows Terminal for the last few releases because the ANSI escapes refuse to render properly unless I enable Legacy Console Mode which helps in CMD prompts, but not in Windows Terminal. When launched in Terminal, it…
aepksbuck
  • 367
  • 2
  • 10
2
votes
4 answers

How to open Python files in the new Windows Terminal?

I'm trying out the Windows Terminal app and I want to start using it instead of CMD. The problem is, I cannot set the File Explorer to open Python files with it by default. I tried using the Open button leading to the file path, but I get the…