Skip to main content

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
0 answers
18 views

Terminal keywords highlighting [closed]

I saw on a tutorial that when you write keywords on the terminal it automatically highlights them: In my case it shows conda in same color (white) Already try to change the theme, but didn't worked. ...
Mateo Buenahora's user avatar
0 votes
1 answer
31 views

Windows Terminal, Command Prompt, and PowerShell cannot change directory to or start in a folder with Asian characters

I'm on Windows 10. I have this problem where I'm unable to start the terminal (which I set up to start with Powershell), or changing directory to this folder: D:\Scanlation\神作家・紫式部のありえない日々\Upscaled\[...
DorderaDomo's user avatar
0 votes
1 answer
25 views

How to emulate Powershell keyboard text selection with WSL in Windows Terminal?

I'm new to using WSL and Windows Terminal. I'm running the default Ubuntu install in Windows 11 and I'm looking for a way to have keyboard text selection behave the same way it does when running ...
Ludon89's user avatar
1 vote
0 answers
25 views

Are Pause and Ctrl+S different in Windows Terminal & Console Host?

I know that Windows terminal applications have changed over time when looking at how they allow users to make the terminal pause accepting output. Ctrl+S (XOFF) and Ctrl+Q (XON) used to work, then ...
Grismar's user avatar
  • 141
1 vote
1 answer
40 views

Powershell Warning before closing a single tab

In PowerShell (Windows 11 - Microsoft Windows [Version 10.0.22621.3593]) there is an option to set a warning when closing multiple tabs: "Do you want to close all the tabs?" Is there a way ...
user avatar
0 votes
1 answer
32 views

Windows Terminal: repeated key-mappings do not work properly

I'm using Windows 10. In Windows Terminal, I want to map the Ctrl-_ (control-underscore) to null in order for it to have no function. In the "actions" section of my Windows Terminal settings....
HippoMan's user avatar
  • 389
2 votes
1 answer
172 views

Windows Terminal automatic switch dark/light theme based on Windows settings

I want Windows Terminal to switch theme automatically depending on Windows 10 settings. This guide says that: "...configure the Terminal to use separate themes for light and dark mode in the OS ...
Barzi2001's user avatar
  • 121
0 votes
2 answers
155 views

Open WSL by Default in a command-line shell

Unfortunately the insoluble problem of jerky scrolling, un-smooth scrolling has left me with no choice but to ditch Ubuntu and go back to Windows. However, I've absolutely fallen in love with the ...
zaccandels's user avatar
1 vote
1 answer
146 views

Run Multiple Commands As Admin From PS1 File ( Windows Terminal)

This PS1 File (test.ps1), while executed, will run The Commands Pushd $Home; bcdedit /enum bootmgr; pause As Admin in PWSH.exe its self. # test.ps1 $AL = "-NoProfile -WindowStyle Maximized -...
Mr.Key7's user avatar
  • 823
0 votes
3 answers
179 views

How do I jump to the beginning of a command in Windows Terminal?

In Linux, I can skip to the beginning of a command by pressing Ctrl-A , and Ctrl-E for jumping to the end of that. However, it is not compatible with Windows Termianl. How am I going to do that? ...
mohamadi_arch's user avatar
-2 votes
1 answer
116 views

Faster Way To Getting Administrator Privileges Within Windows Terminal

As far as I know, the easiest way to get administrator privileges from batch Script is by calling PowerShell. @echo off fltmc.exe >nul || (PowerShell.exe start -verb runas wt.exe '%~0'& exit /b)...
Mr.Key7's user avatar
  • 823
0 votes
1 answer
90 views

How to open the CMD or the PowerShell in the Windows terminal when you open them as Admin?

I noticed that when I open the CMD or the PowerShell in non-admin mode, it always opens in the terminal; however, when I open the CMD or the PowerShell as admin, it always opens the old window. Indeed,...
Federico Navarrete's user avatar
0 votes
1 answer
36 views

Windows Terminal Hosting [closed]

How do you disable windows terminal hosting to stop receiving remote requests to windows terminal. Not powershell Disable-PsRemoting -force As an example I would like to disable access to SSH Thanks
Russ Du Preez's user avatar
3 votes
0 answers
224 views

Tmux window indicator rendering issue with FiraCode Nerd font in Windows Terminal

Description: I'm encountering a rendering issue with the tmux window indicator when using the catppuccin theme in combination with the FiraCode Nerd font on Windows Terminal within WSL. Specifically, ...
user avatar
0 votes
1 answer
130 views

Windows Terminal: Open cmd.exe then run script

I want to create .bat file to open cmd.exe in Windows Terminal and activate python environment cd D:\pythonApp venv\Scripts\activate this successfully open cmd in Terminal and set the directory wt....
uingtea's user avatar
  • 101
0 votes
0 answers
176 views

Windows command prompt cannot start

When I run cmd in Win+R, Windows terminal starts, and instantly closes again. I do not have an AutoRun (checked registry and tried cmd /d). When I start an application that spawns a console, the ...
XerneraC's user avatar
1 vote
1 answer
482 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,197
1 vote
1 answer
295 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
237 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
1 vote
2 answers
196 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
144 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
204 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
1 answer
168 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
297 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
4 votes
1 answer
1k 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
348 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
652 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
5 votes
1 answer
2k 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
  • 3,030
0 votes
1 answer
227 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
  • 381
1 vote
2 answers
1k 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
812 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
507 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
  • 685
0 votes
0 answers
305 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
2 votes
1 answer
3k 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
  • 145
0 votes
2 answers
767 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
710 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
60 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
338 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
1 vote
1 answer
766 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
  • 378
0 votes
2 answers
3k 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
3k 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
  • 113
0 votes
1 answer
799 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
  • 389
0 votes
1 answer
366 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
683 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
1k 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
2k 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
2 votes
2 answers
2k 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
  • 29
2 votes
1 answer
244 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
987 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,660

1
2 3 4 5