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
1 vote
1 answer
28 views

What's the difference between git-bash.exe and bash.exe and how they interact with Windows Terminal?

I've installed Git for Windows. I want to run git-bash in a Windows Terminal tab. I initially configured a git-bash profile, in Windows Terminal, whose Command Line field I populated with C:\Program ...
StoneThrow's user avatar
  • 1,125
1 vote
1 answer
30 views

How can I prevent the Windows Terminal app pinned to the taskbar from opening a new tab when the terminal is on the secondary monitor in Windows 11?

I'm using Windows 11 with two monitors, and I have pinned Windows Terminal to the taskbar. Occasionally, I move the Windows Terminal window to the secondary monitor, but I often forget it's there and ...
Akira Cleber Nakandakare's user avatar
1 vote
1 answer
36 views

Windows Termin new tab and command

I'm trying to open a new tab in Windows terminal and execute a command after that. I've got this: wt -w 0 nt -d . cmd /k cd "D:\Minecraft\Waterfall Network\Waterfall Network - 01 - Proxy" &...
Deutsch - Musik's user avatar
0 votes
1 answer
47 views

In Windows Terminal, detect URLs without an http://

Windows Terminal's Settings > Interaction has a checkbox "Automatically detect URLs and make them clickable." That detects only phrases that start with http:// or https://, e.g., https://...
Camille Goudeseune's user avatar
0 votes
0 answers
24 views

Making windows terminal color more like putty

How to make color in windows terminal same as putty which I am more use to, in the default color scheme in windows terminal many text are not clearly visible in utilities like vimdiff, I tried other ...
Broken Arrow's user avatar
1 vote
0 answers
42 views

Can Windows Terminal be used without Touch Keyboard and Handwriting Panel Service?

Now that Windows Terminal can be downloaded as a Zip file containing all components directly from GitHub, rather than as MS Store "app", I thought I'd try it on Windows 10 (22H2, build 19045....
DrMoishe Pippik's user avatar
0 votes
0 answers
43 views

how do I make an icon (on the win 11 taskbar) that opens windows terminal as an ssh profile by default

I have an icon on my task bar that opens a windows terminal to cmd.exe by default, and in the profile for windows terminal I also have an entry for doing ssh to a server that I connect to. I would ...
Christopher Clark's user avatar
0 votes
1 answer
51 views

Entering Ctrl-; seems to enter ^[ (escape) in WSL2/Ubuntu/Windows Terminal. How to turn off?

Entering Ctrl-; (control with semicolon) seems to enter ^[ (escape) in WSL2/Ubuntu/Windows Terminal. Why is this happening, and how do I turn off this behavior? Note that it doesn't seem to happen ...
Benjamin Berman's user avatar
3 votes
1 answer
610 views

Open Windows Terminal PREVIEW from command line

Is there a way to start a Windows Terminal Preview process? I know you can start the regular Windows Terminal using wt.exe, however, I am using the preview version and would like to open a terminal ...
RcCookie's user avatar
2 votes
1 answer
314 views

I accidentally activated this history search feature in powershell core. What is it called?

I have a rather unusual request - I accidentally activated this feature with my laptop keyboard: It shows all previous commands that match my command prompt. It is very useful, but it appears to be ...
Tim's user avatar
  • 141
0 votes
1 answer
185 views

Windows Terminal - Start a new tab using the cli and run a command with fish

I am using the wt.exe CLI to run some WSL commands in a new tab. However, I seem to be getting some weird error when using Fish shell. The command: wt.exe --window 0 new-tab -p Ubuntu /usr/bin/fish -C ...
user3690467's user avatar
2 votes
1 answer
247 views

How to split panes in Windows Terminal on startup?

I want to start Windows terminal with multiple panes. This does not work in settings.json: "startupActions": "new-tab -p \"Command Prompt\"; split-pane -p \"Command ...
jackhab's user avatar
  • 2,890
0 votes
1 answer
79 views

Why does Windows Terminal in Windows 11 doesn't resolve environment variables when opened using context menu?

I've used sysdm.cpl to set the following two environment variables system-wide: JAVA_HOME=%ProgramFiles%\Java\jdk-8 M2_HOME=%ProgramFiles%\Apache\maven When starting a Windows Terminal using the ...
Thorsten Schöning's user avatar
0 votes
0 answers
28 views

Programmatically open new CMD and enter code *but not run it*? [duplicate]

Is it possible in Windows to programmatically launch a new instance of CMD, Terminal, or PS (doesn't matter which) and populate the input field with some arbitrary code, just like if a user was typing ...
ETL's user avatar
  • 335
1 vote
2 answers
395 views

How to update Python 3 installed through the Microsoft store without reinstalling a new version?

I installed Python 3.10 through the Microsoft Store and used to launch my scripts calling in python as such: python <path to script>.py. Python 3.11 just launched and now that I type python in ...
Odyseus_v4's user avatar
1 vote
1 answer
356 views

Run Java JAR file in background

I have a .jar file that acts weird with hdpi screens. When I run it directly by double-clicking on it, the text is very small and blurry, as if it wasn't hdpi-aware. But if I open my terminal and run ...
404 Name Not Found's user avatar
1 vote
2 answers
213 views

What does Windows Terminal's state.json file do?

I have a couple scripts that rewrite my windows terminal settings.json file from a template. While fixing a bug I noticed another file, state.json. But I can't find any documentation for it. Here's my ...
xdhmoore's user avatar
  • 645
0 votes
0 answers
114 views

tricks to using Terminal+PowerShell+Vim?

I use Vim evoked in raw PowerShell 7 without problems. I have PowerShell 7 as my shell in Windows Terminal. If I try to evoke Vim in a PowerShell 7 instance withing Terminal, Vim does not behave ...
Alan's user avatar
  • 123
1 vote
1 answer
340 views

How to start Windows Terminal and run git bash command immediately?

I would like to automatically run a command in Windows Terminal when it starts for bash tab. How to do that? I'm trying to use "command" in json options, but it doesn't work: { "guid&...
Ap0st0l's user avatar
  • 135
0 votes
1 answer
217 views

Does terminal support mouse input similar to how VSCode does?

A lot of times, I already have my hand on the mouse and just need to make a quick selection or move the cursor around using the mouse. To do standard things such as place the cursor at a certain word ...
GaryAtlan82's user avatar
0 votes
0 answers
205 views

npm process won't exit after closing Windows Terminal

This seems to be a bug in either npm or the Windows Terminal, or perhaps there's a setting I'm not aware of. I have a simple node app where I've installed express, and has a single index.js file with ...
Juan's user avatar
  • 125
0 votes
1 answer
47 views

CMD - separate windows

With Windows 11 now using Terminal to show CMD, or Powershell, or Windows Subsytem for Linux, or what-have-you... Is there a way to open a new CMD window, in a new window? Not just as a new tab in an ...
Ryan Blanchard's user avatar
3 votes
0 answers
152 views

Powershell custom prompt with posh-git git status prompt

I made my own custom prompt for PowerShell and my prompt be look like : [HH:mm] omkrbhagat C:\Users\onkar ~ Then, I installed posh-git module and import in my profile. Auto tab completion for git ...
Omkar Bhagat's user avatar
0 votes
1 answer
302 views

Problems when using "New Windows Terminal" to ssh into non-UTF codepage servers

I'm using Windows 11 with "New Windows Terminal" (default and "main" application in Windows 11 for working with console, not old cmd.exe nor newer PowerShell.exe). It has UTF-8 ...
AntonioK's user avatar
  • 404
0 votes
2 answers
807 views

Command to open several tabs of powershell

Every time I turn on the computer I need to open several tabs of powershell to run different programs, more or less like this: So my question is if there is any command to open them using a script ...
Eloy Fernández Franco's user avatar
1 vote
1 answer
1k views

Open a new NeoVim window using Windows terminal

I am currently using NeoVim by running it from the Windows terminal (Windows 10), using the nvim command. For the moment, if I type Neovim in the Windows search bar and open the app, it opens in the ...
Droidux's user avatar
  • 13
0 votes
1 answer
417 views

Windows 10: ssh-ing to a Linux box and getting full xterm-color capabilities?

At the company where I work, we log in to Windows 10, and we do our development work on Linux machines where we connect via ssh login sessions. We have been able to use PuTTY for this up until ...
HippoMan's user avatar
  • 357
0 votes
1 answer
99 views

Cannot get my cmd out of fullscreen

I changed the default settings for my command prompts to full screen for a test but have been able to get them out of it. I have tried every variation of Alt-Enter I could find but they all just ...
Hugo T's user avatar
  • 3
0 votes
1 answer
376 views

Can't change terminal colors for prompts in Ubuntu on Windows Terminal

I run Ubuntu with fish using wsl on Windows Terminal. I have color scheme configured correctly and it seems that all the colors are changed except for the prompt colors. It remains red on typing and ...
Peter S.'s user avatar
  • 101
1 vote
1 answer
584 views

Windows Terminal Not Picking up PATH variable

I'm using the latest Windows Terminal + Windows 11 + Powershell 7, and I came accross a very strange problem all of a sudden. I'm getting very weird behavior from windows terminal, after restarts, ...
Yehia A.Salam's user avatar
0 votes
2 answers
912 views

can't launch kali-linux GUI (based on WSL 2) with a shortcut on Windows Terminal

I can't find any way to launch the kali-linux GUI with a shortcut and I've tried a lot of methods! I don't want everytime to search for "Kali Linux" on Start, then open it, run the two ...
martinotecco's user avatar
1 vote
2 answers
743 views

Why are Windows Terminal and PowerShell so very inefficient compared to cmd.exe, and how to make them fast?

I run PHP CLI on Windows 10. I have installed Windows Terminal via winget. For several reasons, I have long tried to switch from using cmd.exe to using either PowerShell or Windows Terminal for my PHP ...
Majd's user avatar
  • 19
2 votes
1 answer
184 views

Windows Terminal isn't added to tab history when started via the Run dialog

When opening powershell, cmd, bash, or any other REPL from the Run dialog (Win + R) via the Windows Terminal app ("WT" from now on), I can type as though WT's focused, but its taskbar icon ...
nwalkewicz's user avatar
0 votes
2 answers
508 views

Get list of open tabs in Windows Terminal

In cmd.exe you can list currently running windows by their PIDs and window titles using: tasklist /fi "imagename eq cmd.exe" /fo list /v However, this does not work if cmd is running within ...
Mark Deven's user avatar
  • 1,548
0 votes
1 answer
36 views

How do I send the 'setMark' escape code in Windows Terminal or iTerm2?

Windows Terminal now supports setMark which originally came from iTerm2. How do I add a mark (non interactively, ie so I can use this in my $PS1)? The docs have a screenshot of the relevant text ...
mikemaccana's user avatar
5 votes
1 answer
2k views

How can I get a Windows Terminal prompt without PowerShell? [duplicate]

I am using Windows 11. It seems Windows Terminal is preinstalled. However when the Terminal tabbed interface starts I got the PowerShell 7 prompt in the Terminal. (If I type exit in hope PowerShell is ...
g.pickardou's user avatar
0 votes
1 answer
597 views

Setting codepage 1252 in Windows 11 still gets cp 850 in terminals

On a Windows 11 device, I have the international settings (running "intl.cpl") set to Italian, for non-Unicode applications. Now, that results in applications like WinMerge guessing codepage ...
LuC's user avatar
  • 101
6 votes
1 answer
7k views

How to set WSL default path to ~ (Ubuntu)

Running the command ubuntu in Windows Terminal puts the directory as linux default, but running wsl causes it to mount at /mnt/%USERPROFILE%. I know I can just run ubuntu, but I'm used to using wsl ...
vvxrtues's user avatar
0 votes
1 answer
294 views

How to change the behaviour of "tab" key from "Insert a tab" to "Completion" in sftp CLI in Windows Terminal?

I am recently switching from Ubuntu to Windows 11 and found this feature not working: In Ubuntu terminal, when I am using sftp CLI, Tab means to complete the file/folder name in the directory. However,...
SimZhou's user avatar
  • 101
0 votes
0 answers
37 views

Windows Terminal won't open in current directory [duplicate]

I want to open Windows Terminal in the current folder when I write wt in the address bar. I am running Windows 10 22H2 19045.2604. I've tried setting the starting directory to null and . in settings....
Lord Lance's user avatar
0 votes
2 answers
149 views

How to change key binding for "Delete all characters before the cursor" in Windows Terminal?

I am trying to mimic the keybord shortcut behaviour of Bash to Windows Terminal. In bash, "Ctrl+U" does "Delete all characters before the cursor", In Windows Terminal, "Ctrl+...
SimZhou's user avatar
  • 101
2 votes
1 answer
551 views

Open script in Windows Terminal PowerShell instead of normal PowerShell

I want to open a PowerShell script in the Windows Terminal instead of the normal PowerShell terminal. The command I use to open this script is C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe ...
Skeleton Bow's user avatar
0 votes
0 answers
35 views

Can I force the dropdown terminal on windows 10 to always open on a specific display?

When using the Dropdown terminal on windows 11, it always pulls down on the display where the mouse currently is (not important I think, but I use 3 displays). I want to configure it to ALWAYS open on ...
Yohan Leafheart's user avatar
5 votes
1 answer
925 views

What're the differences between these 2 ways of of launching WSL?

I installed Ubuntu on WSL by doing wsl --install Ubuntu. When I went to set my profile in Windows Terminal, I see two different Ubuntu's. The first one launches by doing wsl -d Ubuntu and the other ...
user8098132's user avatar
0 votes
1 answer
1k views

In Windows Terminal, how do I add bash as one of the shell options?

I'm using Windows 10 and just downloaded and installed the latest version of Windows Terminal. I would like to use a bash shell within the terminal but when I open the settings, I don't see bash as ...
Dave's user avatar
  • 64
1 vote
1 answer
473 views

Right click in Windows terminal inserts clipboard contents instead of opening context menu

In my Windows 10 system, right clicking into any console window (cmd, Powershell, Ubuntu on WSL) inserts the clipboard contents instead of opening a context menu. Is there a setting to change this?
Felix Dombek's user avatar
  • 2,023
3 votes
1 answer
2k views

Windows Terminal: Run a command when starting wsl and keeping the shell open

In Windows Terminal, you can create a profile and add some start-up command (through commandline option in settings.json file. So when you start your profile, WT is executing the command, but then it'...
4wk_'s user avatar
  • 175
0 votes
1 answer
51 views

Temporarily change my hosts title bar while using a TUI utility?

I have this TUI utility called, FZF. But I really dont like its hotkeys to make selections (tab to make multiple selections...) I can solve this easily with AutoHotkey, issue is I need a way for ...
LazyCaterinxxx's user avatar
5 votes
2 answers
8k views

known bug? windows terminal + WSL gets extremely slow after computer sleeps

I am unsure if this is a known bug or not, but when I have windows terminal open + WSL and my computer goes to sleep, often times when I log back in I find using it to be extremely slow, as well as ...
Leftover Salad's user avatar
1 vote
1 answer
1k views

How to add Windows Store Apps to PATH?

I want to add the Windows Terminal (wt) to PATH, as I get the following error if I execute the commands "wt" and "wt.exe": My problem is that Micro$oft has apparently added a ...
MySurmise's user avatar

1
2 3 4 5