Questions tagged [windows-terminal]

Microsoft's official new terminal app for Windows, released May 2019.

Windows Terminal is the Terminal app for Windows made by Microsoft, released in May 2019. See the Windows Terminal GitHub

348 questions
1
vote
1 answer

Terminal Glyphs are not showing

this has been a problem for a while now, my windows terminal is not showing any glyphs or icons, instead a unicode box shows or even nothing... what do i do to fix it? screenshot1 screenshot2 i thought it would be the font but it is set to Cascadia…
Joe
  • 11
  • 1
1
vote
1 answer

How to activate conda/mamba environment automatically on CMD terminal in Windows

Is there something like a profile that will activate mamba/conda automatically when I launch a command (cmd.exe) terminal in Windows? I am using the new Windows terminal and also use WSL and Powershell there as well. I looked in the settings and I…
abalter
  • 9,663
  • 17
  • 90
  • 145
1
vote
2 answers

How to start ssh with wt.exe and keep terminal colors

I have this shortcut C:\Users\David\AppData\Local\Microsoft\WindowsApps\wt.exe --window 0 -p "Windows Powershell" C:\Program Files\PowerShell\7\pwsh.exe -noExit -Command "ssh webdev" It works fine but the terminal opened doesn't have colors. This is…
Daviid
  • 630
  • 4
  • 17
1
vote
1 answer

Is there a way to activate colored output for Poetry in Windows Terminal?

I am asking this question because I have not found an answer before. I recently switched to Windows Terminal and some commands that the "Command Line" or "PowerShell" used to send me with syntax highlighting, are now sent to me without. Example:…
Alain
  • 15
  • 4
1
vote
1 answer

How do I use an ANSI sequence to signify progress in Windows Terminal using Bash?

PowerShell has a Write-Progress cmdlet that would update the Terminal icon to indicate progress. I would like to do the same in Bash (and NOT exec powershell) I think it is doable from the link PowerShell displays certain information using ANSI…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
1
vote
1 answer

Opening WSL2 distro in Windows Terminal and running a command using Command Prompt

I'd like to open a new (Ubuntu) WSL2 session in Windows Terminal and run a command in it using a script or just a single line of code in Windows Command Prompt. It seems pretty hard to me. I only got to this: wt -w 0 nt -p "Ubuntu" -d…
1
vote
1 answer

Powershell v7 Text Background highlighting

So I set up my new laptop with both powershell 5.1 to powershell 7 and I just have this weird problem with powershell 7 where it highlights the background of the text which I just don't like. I do not face this problem with powershell 5.1. I tried…
1
vote
1 answer

cmd.exe interprets ♪ as ? or ΓÖ¬ when reading .bat file on codepage 437

I wish to use the ♪ character inside a custom prompt for command prompt. This needs to be done from within my AutoRun batch file. chcp gives output Active code page: 437. If I type into the console via cmd.exe running on the Windows Terminal app…
1
vote
1 answer

Unable to run command on Batch File

I have a batch file to open directories on Windows Terminal. Currently there are 2 lines on my script: cmd.exe /c wt.exe --window 0 new-tab --profile "RAN" --title "Components" --tabColor "#8AD8FF" --colorScheme "One Half Dark" -d…
1
vote
0 answers

PsReadLine: execute selection

I would like to be able to select some part of the text in my command (e.g. a path) and start it, so that explorer opens the directory, or file. So far i have come up with the code at the end of the post, which works, but has some issues: it only…
1
vote
0 answers

how to update stdscr size with python curses after resizing the terminal

I tried searching everywhere on the internet, but nowhere did I find an answer that worked for me, so I'm asking a new question. In my code, I'm telling curses to get the terminal size and update some variables according to it. On my first try, I…
1
vote
0 answers

Is the debugger running in the new Windows Terminal app

When working on a console app, is there a way to tell if I'm debugging in the new Windows Terminal app? When I actually run the console app it doesn't run in Windows Terminal but when debugging (with VS2022) the debugger runs in the new Windows…
LorneCash
  • 1,446
  • 2
  • 16
  • 30
1
vote
0 answers

How to access command history in Python shell on Windows Terminal Bash?

I sometimes want to experiment with Python code in the Python shell. In other languages (Haskell, F#) I'm used to be able to experiment in a REPL that supports command history. I start the Python shell from (Git) Bash running in Windows Terminal: $…
Mark Seemann
  • 225,310
  • 48
  • 427
  • 736
1
vote
1 answer

How to make PowerShell look the same as in Windows Terminal?

If I launch Windows Terminal, which, in turn, launches an instance of PowerShell 7.2.6 it looks different than if I simply launch PowerShell 7.2.6. The top image is Windows Terminal with a PowerShell tab. Bottom image is PowerShell by itself. Not…
martin's
  • 3,853
  • 6
  • 32
  • 58
1
vote
1 answer

Powershell and correctly quoting paths for command line tools

I have this program, Search everything, its a search tool. It has a command line tool that can be used to invoke a search without manually interacting with the GUI interface. Its manual states that double quotes need to be escaped as well as paths …