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

Load a .PS1 file into current session without simulating user input?

I have this file called Local_Paths.txt . Its just a text file full of paths: C:\Temp\README.md C:\Temp\README.md C:\Temp\object_lifetime_management.md C:\Temp\object_reference.md ... ... ... The paths are being logged there, in real time as I…
1
vote
1 answer

Sending a command through serial port to a device using windows terminal powershell

I'm trying to send a command to a device using windows terminal, so what I do is [System.IO.Ports.SerialPort]::getportnames() For getting the good port, then $port= new-Object System.IO.Ports.SerialPort COM3,9600,None,8,one $port.open() for…
valkyrion
  • 11
  • 2
1
vote
0 answers

Disable/Enable logs showing up in terminal

I am working with a Windows server which was configured by some colleagues which have since left the company. The console is configured in a way that very extensive logs are shown in the terminal (both cmd and powershell) after each command. While I…
Manuel
  • 649
  • 5
  • 22
1
vote
1 answer

Virtual Terminal/Pseudo-console buffer size events for Windows Terminal

What is the preferred way to respond to changes in the buffer size for Windows Terminal? With an old-school command prompt, I would get a reference to the window handle for the console and hook the events from there. Is there an equivalent for…
elaverick
  • 314
  • 1
  • 2
  • 13
1
vote
1 answer

Is there a way to save an output texture to be used as input for the next iteration of that pixel in HLSL?

I'm thinking of writing a pixel shader for Windows Terminal and I'd love to add phosphor persistence. For that, I'd need to save a couple previous results of the shader output and keep them across multiple pixel calls. Is there a way to declare a…
rbanffy
  • 2,319
  • 1
  • 16
  • 27
1
vote
1 answer

How to hide PowerShell startup advertisement?

When I using Ubuntu,the first line of terminal is prompt and my command. But on Windows PowerShell,it shows an advertisement firstly each time I run terminal. Is there any method to hide it? I try to add cls command to profile but the effect is…
rpish
  • 31
  • 4
1
vote
1 answer

Changing profile path of windows 11 terminal

I'm trying to setup shortcuts (command aliases) in Windows 11 terminal. When I try to run the command: echo $profile It gives me the path: C:\Users\ashut\OneDrive\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 Now if I try to save…
Ashutosh
  • 4,371
  • 10
  • 59
  • 105
1
vote
0 answers

How do I update the path variable in windows terminal without closing and reopening?

I just installed something through chocolatey and unable to access it through my currently open Windows Terminal. On Linux, I could do a source ~/.bashrc or something to update my $path I changed in .bashrc. Also, opening a new tab in the same…
Mahesh Bansod
  • 1,493
  • 2
  • 24
  • 42
1
vote
0 answers

Why is MSYS2 using non-standard terminal colors?

I have been trying to figure this out for a couple hours and it has left me confused. I have installed MSYS2 on Windows 10, and added it as a profile to windows terminal by adding the following snippet to the profiles section of my settings.json: { …
Ryan
  • 119
  • 2
1
vote
1 answer

Windows terminal many tabs with [process exited with code 1 (0x00000001)]

When ever I run nx serve on my windows terminal, after a while I see 100's of tabs open up with [process exited with code 1 (0x00000001)] error. They take all the focus away and I am not able to use my computer till the server is up and…
Pratyush
  • 171
  • 1
  • 8
1
vote
1 answer

Changing cursor type from python

I am making a text based video game with python, and I need a way to change the cursor type from inside python. Here is my code: from os import system,getenv from json import loads,dumps import uuid apd = getenv("LOCALAPPDATA") pf =…
greatusername
  • 129
  • 1
  • 10
1
vote
2 answers

PowerShell script for calling Kubernetes commands

I would like to create a .ps1 script that would open an Windows Terminal window with multiple tabs and in each tab a command to be executed ( kubectl logs -f "name_of_pod" ). So I would basically want to automate my day to day process of opening …
1
vote
0 answers

Why do mysterious newline characters randomly appear during IPython sessions?

Problem Newline characters randomly appear in my terminal window if I've had an IPython session running for more than a few minutes. Screenshots/diagram Context OS: Edition Windows 11 Enterprise Version 21H2 Installed on ‎3/‎7/‎2022 OS build …
1
vote
1 answer

Opening a new WSL2 tab in Windows terminal and executing command

I'm using WSL2 on Windows terminal. I have an app that needs front end and backend booted before it can be used, so every time I nave to open a terminal window, navigate to a folder and run a command. I would like to set an alias that would open a…
1
vote
1 answer

Where should I generate Windows Terminal JSON fragment extensions?

I'm creating "JSON fragment extensions" for Windows Terminal in my code, to create some "auto-generated" Windows Terminal profiles. In the official docs, JSON fragment extensions in Windows Terminal, there are 2 locations recommended for storing…
citelao
  • 4,898
  • 2
  • 22
  • 36