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.
238
questions
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.
...
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\[...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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 -...
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? ...
-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)...
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,...
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
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, ...
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....
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 ...
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 ...
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 ...
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" &...
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://...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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&...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...