Invisible text after opening Windows Terminal by double-clicking .bat file #22605

Closed
opened 2026-01-31 08:18:14 +00:00 by claunia · 3 comments
Owner

Originally created by @n0samu on GitHub (Nov 28, 2024).

Windows Terminal version

1.21.3231.0

Windows build number

10.0.19045.5131

Other Software

No response

Steps to reproduce

  1. Make sure the Launch Size setting is set to 120 columns and Windows Terminal is set as the default terminal application. Make sure that Windows Terminal opens when you double-click a .bat file.
  2. Create a .bat file with the following code:
@ECHO OFF
CLS & ECHO.
ECHO ------------------------------------------------------------------------------------------------------------------------ 
ECHO.
SET /P INPUT="Enter a filename or URL: "
  1. Close any open terminal windows, then double-click the .bat file to run it.

Expected Behavior

Here's what I see in my terminal window if I run the .bat file from an existing terminal session and type "my input" at the prompt:
Image

Actual Behavior

When I double-click the .bat file to run it in a new terminal window, the prompt text is invisible and the input text appears slightly above where it should:
Image

I have also observed the input text being shifted upward while the prompt text is visible:
Image

Originally created by @n0samu on GitHub (Nov 28, 2024). ### Windows Terminal version 1.21.3231.0 ### Windows build number 10.0.19045.5131 ### Other Software _No response_ ### Steps to reproduce 1. Make sure the Launch Size setting is set to 120 columns and Windows Terminal is set as the default terminal application. Make sure that Windows Terminal opens when you double-click a .bat file. 2. Create a .bat file with the following code: ```bat @ECHO OFF CLS & ECHO. ECHO ------------------------------------------------------------------------------------------------------------------------ ECHO. SET /P INPUT="Enter a filename or URL: " ``` 3. Close any open terminal windows, then double-click the .bat file to run it. ### Expected Behavior Here's what I see in my terminal window if I run the .bat file from an existing terminal session and type "my input" at the prompt: ![Image](https://github.com/user-attachments/assets/d4cdccdb-2858-485e-a97b-53b9a7b60460) ### Actual Behavior When I double-click the .bat file to run it in a new terminal window, the prompt text is invisible and the input text appears slightly above where it should: ![Image](https://github.com/user-attachments/assets/478d56b3-2c03-4468-b8cc-670b9e431370) I have also observed the input text being shifted upward while the prompt text is visible: ![Image](https://github.com/user-attachments/assets/dc50a953-dd7b-4487-a9d0-f1c9652976b5)
claunia added the Needs-TriageIssue-Bug labels 2026-01-31 08:18:15 +00:00
Author
Owner

@j4james commented on GitHub (Nov 30, 2024):

I'm not sure what the problem is, but I think this may be fixed already. I can reproduce it in an old release version of Windows Terminal that I still have installed (v1.20.11781), but not in the preview build (v1.22.2702).

@j4james commented on GitHub (Nov 30, 2024): I'm not sure what the problem is, but I think this may be fixed already. I can reproduce it in an old release version of Windows Terminal that I still have installed (v1.20.11781), but not in the preview build (v1.22.2702).
Author
Owner

@n0samu commented on GitHub (Dec 7, 2024):

Thanks, I think you're right. The problem is not reproducible for me in Terminal Preview 1.22.3232.0.

@n0samu commented on GitHub (Dec 7, 2024): Thanks, I think you're right. The problem is not reproducible for me in Terminal Preview 1.22.3232.0.
Author
Owner

@carlos-zamora commented on GitHub (Dec 11, 2024):

Great! Since it's fixed in v1.22, I'm going to close this. Thanks!

@carlos-zamora commented on GitHub (Dec 11, 2024): Great! Since it's fixed in v1.22, I'm going to close this. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22605