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.
59
questions with no upvoted or accepted answers
4
votes
2
answers
1k
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 ...
3
votes
0
answers
141
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, ...
3
votes
0
answers
272
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 ...
3
votes
0
answers
745
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 ...
3
votes
0
answers
1k
views
How to send Ctrl-C kill signal in Windows Terminal?
In the terminal I've been using for years (ConEmu), I am able to stop the currently running command with Ctrl-C.
This does not work with the Windows Terminal running PowerShell. Once I start a ...
3
votes
1
answer
2k
views
Windows Terminal Ctrl key not working
I have a Ubuntu machine on the internet. I've used Windows Terminal to open PowerShell then used the Windows ssh command to connect to the Ubuntu machine. Finally I ran vim on the remote machine.
I ...
2
votes
0
answers
77
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 ...
2
votes
0
answers
616
views
How to change default codepage in Windows Terminal using WSL?
I have a file saved as a Big5 encoding. I have to use cp950 codepage to show that text successfully.
In Command Prompt, I can use CHCP 950 to switch to right codepage. In WSL, I don't know how to do ...
2
votes
0
answers
188
views
Windows Terminal - display background image across split panes
When using Windows Terminal and splitting the window panes it currently duplicates my custom background image between the two panes. Is there a way to have the background image encompass the entire ...
2
votes
0
answers
2k
views
Replace "cmd" to start Windows Terminal instead of cmd.exe
I am now using Windows Terminal as my main terminal on Windows. It's an awesome project.
However, I still have the habit of using win+R, then "cmd", then "Enter".
I'd like to ...
2
votes
0
answers
841
views
Windows Terminal Autocomplete Freezes after Semicolon
On Windows Terminal using WSL 2 + bash, if my current input ends in ; and I hit [TAB], that tab terminal becomes unresponsive to user input for about 25 seconds. [CTRL] + [C] prints ^C to the screen, ...
2
votes
0
answers
746
views
Start Git Bash profile in Windows Terminal from bat file and pass in an executable command to run
I am trying to start 2 applications (client and server of a MERN stack app) in Git Bash using command-line arguments for Windows Terminal. Below given is my command
wt -M; new-tab -p "Git Bash&...
1
vote
0
answers
130
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....
1
vote
0
answers
909
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"...
1
vote
0
answers
248
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 ...
1
vote
1
answer
1k
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 ...
1
vote
0
answers
280
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
2k
views
Windows Terminal behaves strangely in WSL2 when entering or leaving full-screen apps like man, vim, less
I installed WLS2 Ubuntu on Windows 10.
I launch WSL in Windows Terminal and then:
type 'man man' to enter manpage
press 'd' to scroll down
press 'q' to quit
Everything looks fine at this point:
... ...
1
vote
0
answers
62
views
How do I prevent certain characters from messing up spacing in terminal emacs, nano, etc in WSL2?
Consider the file
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin non
velit sem. Fusce rhoncus eros eget mi blandit, in ultricies mi
sollicitudin. Nam nec justo sollicitudin, varius ...
1
vote
1
answer
596
views
Can't set Windows Terminal as default because it is not detected in the list of terminals
I am running Windows 11 stable version on my Lenovo S340 since upgrading from Windows 10.
I looked in the settings of Windows Terminal to set it as the default application, but the list of terminal ...
1
vote
1
answer
557
views
How to send escape character on telnet session while using Powershell 7 with a Portuguese keyboard layout
I've started a telnet session (ex.: telnet ip port) and I'm wondering if anyone knows how to send the escape char so that I can get the telnet> prompt back.
I've already found this, but it seems ...
1
vote
0
answers
764
views
Executable not recognized in PowerShell. Possible issue with accented characters in path?
I am trying to customize my PowerShell prompt in Windows Terminal using Oh My Posh.
I am following the docs but can't understand what I am missing. As instructed by the Oh My Posh docs, after the ...
1
vote
1
answer
546
views
Creating a shortcut to open Terminal with two panes of Ubuntu running PING?
The following command line (for use in a Desktop shortcut or from Run) will open a Windows Terminal window, split into two panes, both running Ubuntu:
wt -p "Ubuntu" ; split-pane -p "...
1
vote
0
answers
1k
views
WIndows Terminal SSH Connection Logging
I have been advised to assess the usage of Windows Terminal in our environment which spans across four domains. As it is possible to use SSH to connect to different servers using Windows Terminal, our ...
0
votes
1
answer
52
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
0
answers
124
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 ...
0
votes
0
answers
111
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 ...
0
votes
1
answer
189
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 ...
0
votes
1
answer
502
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 ...
0
votes
1
answer
191
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
254
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 ...
0
votes
0
answers
594
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
56
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 ...
0
votes
1
answer
691
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
602
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 ...
0
votes
2
answers
1k
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 ...
0
votes
1
answer
496
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,...
0
votes
0
answers
36
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 ...
0
votes
1
answer
60
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 ...
0
votes
0
answers
152
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
914
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:
...
0
votes
0
answers
1k
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 ...
0
votes
0
answers
331
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 ...
0
votes
0
answers
365
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
1k
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 \...
0
votes
0
answers
917
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 ...
0
votes
0
answers
87
views
Which terminal is that?
While watching Introduction tutorial to Qt / QML I noticed Jesper Pedersen from KDAB seems to be using a Windows terminal which is not that old (classic) DOS command prompt I'm used to. Seems to be ...
0
votes
1
answer
200
views
Shell-based (Terminal) methods for viewing or tailing Windows logs (events)?
I would like to "tail" Windows system logs and other such logs via a shell (in Terminal) in Windows. I don't want to use traditional window log viewing methods such as Event Viewer or even ...
0
votes
1
answer
1k
views
How may I more easily change the fontFace in Windows Terminal?
I've installed a few console fonts from Github for Windows Terminal, but when I go to Settings to select them I get dialog to wit that 'the selected font is not found' and am advised to install the '...
0
votes
0
answers
328
views
How to set Windows Terminal to open bash at a specific folder?
How can I configure a Windows Terminal profile to open Git Bash, but setting it to navigate to a specific path?
I've tried to set --cd=\"D:/path/"" but it does not work:
%PROGRAMFILES%/...