Questions tagged [windows-terminal]

Windows Terminal is a terminal emulator for Windows 10 written by Microsoft. Windows Terminal is a new, modern, feature-rich, productive terminal application for command-line users. It includes support for tabs, rich text, globalization, configurability, theming & styling, and more.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

How to set a profile for Windows Terminal with user defined environemt variables

I would like to create a dedicated profile for Windows Terminal with the following: Update the PATH variable. Set some new environment variables. How can I achieve that?
1 vote
1 answer
19 views

PowerShell, run code if in ConHost but not if in Windows Terminal

I use the below functions in my $profile to get around the incredibly annoying fact that Windows opens 80+% of new PowerShell windows with the cursor position below the taskbar so I have to move the ...
  • 557
1 vote
0 answers
27 views

Starting Command for Powershell 7 in Windows Terminal

I would like to start Powershell 7 in Windows Terminal with a Command: npm run start So I configured it like this: "C:\Program Files\PowerShell\7\pwsh.exe" -Command "npm start run"...
  • 119
0 votes
1 answer
27 views

Statement completion in Windows Terminal displays but doesn't engage

Recently Windows Terminal got updated and it got History suggestions. It looks like this: As I type, it shows the history item that matches my entry. I thought pressing Tab would auto complete the ...
  • 17.8k
0 votes
0 answers
22 views

Windows terminal is missing after reboot

I'm using Windows Terminal in my VDI environment(via Citrix) If I reboot my VDI environment Windows terminal is not available. Again I've to visit Windows Store and re-install. After that my settings ...
0 votes
0 answers
35 views

Redirect the Windows console output of a Python script without raising UnicodeEncodeError

I have a Python script called scratch_1.py which can be simplified for the sake of the question to: s = "∞" print(s) If I run the script in the Windows console, I get the expected output: ...
  • 187
1 vote
1 answer
44 views

How to launch Windows Terminal from command without invoking wt.exe alias?

On my computer, UWP apps Paint and Windows Terminal sometimes won't launch when invoked by their aliases. Launching mspaint.exe will cause an application error event involving mspaint.exe on module ...
1 vote
1 answer
29 views

Start WSL in C:\Users\<username> via Microsoft Terminal

As above, I want to by default open Ubuntu 22.04.1 (in WSL) through Microsoft Terminal in my Windows home directory C:\Users\\<name\>. I've tried entering the default path as C:\\Users\\\<...
  • 123
0 votes
0 answers
16 views

How to disable or remap Ctrl+esc in windows from registry

i am looking for a way to disable the default windows behaviour of Ctrl+esc, and free up this key combo for usage in the terminal / other programs. I would like to avoid using external apps such as ...
2 votes
1 answer
45 views

How to associate PS1 file type to Windows Terminal with PowerShell profile

I want to let Windows Terminal run PS1 script while using the blue-backgrounded "PowerShell" profile. If I simply switch to Windows Terminal as default Windows console, double-clicking a PS1 ...
0 votes
1 answer
52 views

Add launch commands to Command Prompt in Windows Terminal

In a similar way to .bashrc on WSL2, I want to add custom commands to run when I open the Command Prompt in Windows Terminal, like winfetch for example. Is there any way to configure the Command ...
0 votes
2 answers
58 views

Windows Terminal is unable to start in windows 11

It's just the terminal won't load at all, I tried everything form resetting to reinstalling the application throw the store but nothing works at all. I tried to see windows terminal version in the cmd ...
1 vote
1 answer
124 views

How to Make Windows Terminal the Default Shell on Windows 10

Previous builds of Windows Terminal allowed it to be defined the default shell for Windows 10 (See https://www.bleepingcomputer.com/news/microsoft/windows-terminal-can-now-be-the-default-windows-10-...
1 vote
0 answers
47 views

Windows PowerShell how to handle colon character that stops output from printing to screen

This is a classic example of "don't know what terms to Google because I don't know the terms". When I use a command in PowerShell (in this case, Windows PowerShell (1.14.2281.0)), sometimes ...
  • 123
2 votes
2 answers
172 views

Wake on LAN in Windows Susbsystem for Linux

How can I wake my Linux machine from WSL? My Windows machine has no issue using WOL to wake my Linux machine when using a platform-dedicated software, but when I try doing that from WSL2 (Ubuntu 22.04)...
0 votes
0 answers
31 views

Shift + arrow => ABCD on WSL2

It happens on wsl2 terminal on windows 11. When I typed Shift + <- the output is D instead of moving backward the cursor. The same with other arrows. Shift + -> => C Shift + up => A Shift +...
  • 127
11 votes
4 answers
3k views

Clear Screen in PowerShell and Command Line without erasing everything

In using the clear command, the screen clears. Totally. I no longer have access to any of the stuff that was previously on the screen at all. Is there a way to "clear" the screen (i.e. make ...
  • 123
2 votes
1 answer
258 views

Can't delete or hide duplicate Ubuntu Profile in Windows Terminal

Similar to this question, I see two WSL profiles, but I'm unable to delete or hide them as suggested in that answer: wslconfig /l in PowerShell shows only one distro installed: I've tried setting ...
  • 121
1 vote
1 answer
210 views

Different profiles of the same WSL2 linux instance in Windows Terminal

I've got Ubuntu-22.04 installed in WSL2 on Windows 10. However, there are two Windows Terminal profiles in my settings.json. One of them must have appeared after some update, it was not there from the ...
  • 13
1 vote
4 answers
961 views

whenever I start my windows laptop, after laptop is opened terminal is automatically opened and inside terminal its written -

unable to open "C:\Users\98298\AppData\Roaming\Dll\config.json". unable to open "C:\Users\98298\.xmrig.json". unable to open "C:\Users\98298\.config\xmrig.json". I'm not ...
  • 11
1 vote
1 answer
341 views

Windows Terminal: How to add command line arguments to the "Open in Windows Terminal" context menu?

I would like to use the "Open in Windows Terminal" context menu installed together with Windows Terminal, but with some command line arguments in it. Specifically, I would like to add the ...
  • 113
-1 votes
1 answer
451 views

Why in 'Windows Terminal' in some color schemes black color matches the background color?

I use the "Windows Terminal" in the "Windows 10" system. Recently I noticed that in some command line applications, parts of messages disappear. It turned out that the authors of ...
1 vote
1 answer
190 views

What do I need to use keyboard in Windows Terminal?

tl;dr Since yesterday my Windows Terminal is not accepting any key presses and I cannot write any command in it. This is the only program in my Windows 11 that ignores keyboard. What should I do to ...
  • 10.4k
1 vote
1 answer
222 views

How to change the command history buffer size in Windows Terminal

I can change the history buffer size of CMD.exe using the preferences: But how can I do it when running a CMD shell inside Windows Terminal? Those settings are nowhere to be found. Edit: This ...
  • 557
0 votes
0 answers
81 views

How to hard set Windows Terminal as default for ALL applications and users?

The conventional method to set a default terminal application doesn't apply to 2 types of applications: Running a shell (e.g: Powershell) as administrator Running a application-specific such as Git ...
0 votes
1 answer
731 views

More Terminals in Explorer right-click menu on Win11

I have Window Terminal set to start WSL by default. I often want to open Terminal to a specific folder from Explorer. The problem is that since WSL is the default, it always opens a Linux shell, even ...
  • 103
0 votes
1 answer
1k views

Powershell truncates my output, how do I make it NEVER do that?

Sometimes powershell commands produce output which is wider than the console window. When this happens, it collapses extra content into a "..." so everything fits in the width of the console....
  • 913
1 vote
2 answers
494 views

Hide "All rights reserved" message in CMD in Terminal

How can I stop this message from appearing every time I launch Windows Terminal with CMD: Microsoft Windows [Version 10.0.19044.1706] (c) Microsoft Corporation. All rights reserved.
  • 1,226
2 votes
0 answers
43 views

Set default terminal for elevated command prompt

You can set a default terminal in developer settings section of windows settings. If you launch a batch file with elevated privileges, it still uses the old shell. How do I set the default shell for ...
  • 9,051
0 votes
0 answers
654 views

How to run WSL from Windows Terminal?

I installed WSL1 and Ubuntu 22.04 from the Windows Store. The installation was fine and the terminal is working fine when launched via the Ubuntu icon. However, when trying to launch it from the ...
  • 111
0 votes
1 answer
333 views

How to port / sync my Windows Terminal settings between computers?

I spent quite some time in Windows Terminal to set up my preferences and color themes. What's a good way to port / sync these settings to other computers? I guess there are 3 tiers of solutions: Level ...
  • 143
0 votes
0 answers
194 views

Command working in Command prompt but not working in Windows Terminal

On restarting my PC today, few external commands(ssh, findstr) are not working in Windows Terminal. But they do work if I open up a command prompt. In Windows Terminal I get C:\>ssh 'ssh' is not ...
1 vote
0 answers
112 views

Windows Terminal removing/skipping random lines of output

Windows Terminal (1.12.10982.0) keeps removing random lines from the output in Ubuntu/WSL - notice the gap in irb's output between line 52 and 70: irb(main):051:3* file.each do |line| irb(main):...
1 vote
1 answer
393 views

How do I fix command output in terminal is invisible on external monitor

Sometimes, when I run a command in Windows Terminal, the output of that command will be invisible until I select the text in the terminal, then it appears one whole line at a time, even if I don't ...
  • 111
0 votes
2 answers
131 views

Run Window can't open wt

A couple days ago I reinstalled windows and ever since, I can't open the Windows Terminal through the run window. I tried: Changing permissions to default, following this question Can't open ...
7 votes
7 answers
12k views

Updated Windows Terminal and now Ubuntu won't load. process exited with code 4294967295 (0xffffffff)

Initially posted to the Unix \ linux stack exchange and was pointed here instead. I recently updated Windows Terminal from 1.2.X to 1.12.X and the Ubuntu install refuses to run, giving the error [...
0 votes
0 answers
189 views

How should I fix the title bar of windows-terminal?

I have two users on my Windows 10 machine. I have installed Windows Terminal for both users. Below is a screenshot with showing what wt.exe looks like for both users. I have a BAD (color: red) title ...
0 votes
1 answer
96 views

Copy data from Linux console to Windowshost clipboard using Windows Terminal

I'm using Windows Terminal to access my Linux boxes and I have a need for copying data from the Linux console to the Windows host clipboard, it that possible? More specific I run a .Net core ...
  • 250
0 votes
1 answer
307 views

How to split Windows Terminal with 2x3 equal sized pane on startup?

I want Windows Terminal to startup with 2x3 pane that are equal sized, but with the command below they are not equal size: "startupActions": "sp -p \"Bash\" ; mf left; sp -p \...
  • 1
4 votes
2 answers
4k views

How to open multiple tabs and run ssh from the command line in windows ternimal?

I have WSL2 and an Ubuntu instance, is there a way in windows terminal to open multiple tabs from the command line and run things in them ? To be more detailed I would like to do the following, so ...
  • 153
0 votes
1 answer
538 views

Windows Terminal is not displaying PATH variable

My windows terminal is not recognizing the PATH variables... I was having trouble when adding new values to the path variable and it not working properly when I tried to run the applications I added, ...
2 votes
2 answers
485 views

Windows 11 - How to Run Windows Terminal as Administrator from Taskbar Icon By Default

I have Windows 11 Pro (21H2). I have Windows Terminal icon in the Taskbar. I always have to right-click on it, and click Run-As-Administrator. I'd rather have it run as Administrator by default. I can ...
2 votes
2 answers
760 views

Desktop shortcut to a specific profile in Windows Terminal

I have a few custom profiles in Windows Terminal, as shown in the settings menu: How do I make a desktop shortcut which I can double click that launches windows terminal with one of these profiles?
  • 577
1 vote
1 answer
1k views

Broken oh-my-posh on Windows Terminal

I'm using Windows Terminal (Preview) with oh-my-posh. But when I start my terminal up, the screen is broken as hell. Any suggestions?
0 votes
0 answers
468 views

SSH config - a better way? WSL & Windows Terminal

At the moment, I've got my .ssh/config file organised to have maybe 20 different hosts, however my roll is expanding to include probably another 30 or so servers with applications on. Is there a ...
2 votes
1 answer
538 views

Lauch Windows Terminal via alias "wt.exe" from win+r causes error 0xc0000022

When i'm trying to lauch WindowsTerminal via wt or wt.exe alias i get this error (0xc0000022). I already tried next: reinstall WindowsTerminal "repair" and "reset" it in Setting-&...
  • 76
0 votes
1 answer
206 views

Windows Terminal shows an error message when I open it. It says: multiple profiles with same GUID. Does anyone know how to solve this?

Here is a screenshot of what I see when I open Windows Terminal It says: Found multiple profiles with the same GUID in your settings file - ignoring duplicates. Make sure each profile's GUID is unique....
  • 11
1 vote
1 answer
452 views

Sending PJlink commands with netcat

I have a projector that I want to control over TCP using a protocol called "PJlink", but I can't manage to get it working. I'm currently trying to do this through Windows Terminal in WSL ...
  • 13
2 votes
1 answer
390 views

How to input a tab character using Windows Terminal + native SSH client?

I know that when using most SSH clients to remote to a bash terminal, I can use to ctrl+v then tab to enter a tab character. But when using Windows Terminal, ctrl+v just pastes whatever content is in ...
0 votes
2 answers
2k views

Force application to minimize to icon tray rather than closing

Is there a way to force an application to minimize to the icon tray instead of closing the application when the X is clicked in Windows 10? Some applications, like Spotify and Slack, automatically ...
  • 149