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
2
votes
1 answer

Windows-Terminal Theme Colors SSH

I am running Ubuntu-20.04 in WSL 2 and use Windows Terminal. I am using the colorScheme "Dracula" and in my local bash everything is displayed perfectly. But as soon as I SSH into a remote machine the default colors are displayed. This makes for…
2
votes
2 answers

How to really disable ctrl+shift+arrow keys in Windows Terminal Preview?

Everytime I try to use ctrl-shift-up or ctrl-shift-down inside of the new windows terminal preview, it scrolls the terminal view up or down. I tried going into the profiles.json file and set the "command" : "scrollDown" and "command" : "scrollUp" to…
mbl
  • 805
  • 11
  • 18
2
votes
0 answers

Enable CTRL shortcuts in Windows Terminal for Powershell

I am trying to enable CTRL shortcuts in Windows Terminal as per my current powershell instance but cannot figure out for life of me how to go about it. Any advice ideas?
Aeseir
  • 7,754
  • 10
  • 58
  • 107
2
votes
1 answer

How to determine if the terminal is a windows terminal

How to determine if the terminal is a windows terminal. I want to enabled ANSI output in windows terminal and disenabled in CMD. Is it possible to judge through environmental variables? like: ANSICON in https://github.com/adoxa/ansicon ConEmuANSI…
1
vote
0 answers

Windows terminal CTRL + R vs Git Bash CTRL + R | Commands are not saved after reopening

I have been using windows-terminal (powershell) and when I am using it I can easily do CTRL + R in the command line. Whenever I do CTRL + R, and start typing, it brings up my old commands that I have typed, even if I open a new terminal or shut the…
sander
  • 1,426
  • 4
  • 19
  • 46
1
vote
2 answers

How can I only allow a function to be run via a script and not the terminal wt.exe (PowerShell)

I have been trying to make a function for hours to only run if it's run by the script and not the terminal. I have a Profile.ps1 in C:\Users\Alexander\Documents\PowerShell\Profile.ps1 that is run on every terminal instance. Like a linux .bashrc…
Alexander
  • 11
  • 3
1
vote
1 answer

Using Vim's Terminal JSON API From pwsh / windows terminal

For when you are in Vim's :terminal buffer, and you want to open a new file, but use the existing Vim instance instead of create a new one, Vim has a specific escape sequence you can enter to tell Vim to do a command like open a file: Job to Vim:…
xdhmoore
  • 8,935
  • 11
  • 47
  • 90
1
vote
1 answer

Print 1px wide vertical line in a terminal

Hopefully this isn't impossible, but I want access to the console's ability to print that little blinking cursor. I'm implementing a mini terminal that can sit inside Write-Progress whilst another program writes to the actual console in the…
Hashbrown
  • 12,091
  • 8
  • 72
  • 95
1
vote
1 answer

How can i change the default path of PowerShell exe

I have installed PowerShell using the scoop package manager on my system. However, even after installation, the system still refers to the old path of PowerShell. I have tried adding the new path of the new PowerShell installation to the environment…
1
vote
0 answers

Git Bash on Windows Terminal App aliases not working?

I downloaded the Windows Terminal app from the Microsoft Store and to use Git Bash I had to add this profile manually. So I added the bash.exe on C:\Program Files\Git\bin, so it doenst just open git bash in a new window. The problem is this bash.exe…
Alex Nicol
  • 11
  • 1
1
vote
1 answer

How to make a released console app run on Window Console Host in any case?

I have programmed a game running on console. The console host I chose to use is Window Console Host because I can easily and successfully setup and confiugre it with the API functions from . The game's window I expected was like below: I…
Cong Hau
  • 29
  • 3
1
vote
2 answers

Console.WriteLine occasionally doesn't break the line

I noticed in one of my application that calling Console.WriteLine() doesn't work every time. Meaning, that the written string isn't terminated with a line break and the next call to Console.WriteLine() will be printed on the same line. To test the…
Rand Random
  • 7,300
  • 10
  • 40
  • 88
1
vote
2 answers

Visual Studio 2022 Debug Console Window Font Size, When Using Windows Terminal

I have set Windows Terminal as my default terminal application in windows terminal itself. Now when I debug something in Visual Studio, it brings up, what I believe, is a Windows Terminal window. This is fine, but I have very bad eyesight, so I need…
Dirk
  • 884
  • 1
  • 7
  • 18
1
vote
1 answer

ASCII Art gets bugged 1 out of 10-15 times when I open my batch file

I am working on a batch file that has ASCII art as a welcome page. The ASCII art gets echoed weirdly sometimes. It is missing some of the bottom lines. It is supposed to look like this. I tried changing the window height and width of…
leiseg
  • 105
  • 6
1
vote
0 answers

Invoke-RestMethod works on cable but not on Wifi

When connected on Wifi: PS C:\Users\Julio> Invoke-RestMethod juliobs.com Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a receive. At line:1 char:1 + Invoke-RestMethod juliobs.com +…