Skipping lines when opening scripts by double click #19059

Closed
opened 2026-01-31 06:32:36 +00:00 by claunia · 3 comments
Owner

Originally created by @VillaFX on GitHub (Dec 13, 2022).

Windows Terminal version

1.15.2875.0

Windows build number

10.0.22621.900

Other Software

No response

Steps to reproduce

Using a very simple loop. in a .bat and opening by double click (it works properly, if open via command in terminal or by using cmd)
ECHO OFF
CLS
FOR /L %%i IN (0,1,50) DO (ECHO %%i)
PAUSE

Expected Behavior

0
1
2
3
4
......

Actual Behavior

run

Originally created by @VillaFX on GitHub (Dec 13, 2022). ### Windows Terminal version 1.15.2875.0 ### Windows build number 10.0.22621.900 ### Other Software _No response_ ### Steps to reproduce Using a very simple loop. in a .bat and opening by double click (it works properly, if open via command in terminal or by using cmd) `ECHO OFF` `CLS` `FOR /L %%i IN (0,1,50) DO (ECHO %%i)` `PAUSE` ### Expected Behavior 0 1 2 3 4 ...... ### Actual Behavior ![run](https://user-images.githubusercontent.com/120457437/207282637-403f2f71-3e73-434c-9f9e-ce1128444ccf.png)
Author
Owner

@zadjii-msft commented on GitHub (Dec 14, 2022):

This actually super bad.

There's clearly a race here in the window size in the defterm case.

A note: adding a mode breaks the repro.

We should investigate more.

@zadjii-msft commented on GitHub (Dec 14, 2022): This actually _super bad_. There's clearly a race here in the window size in the defterm case. A note: adding a `mode` breaks the repro. We should investigate more.
Author
Owner

@zadjii-msft commented on GitHub (Jan 3, 2023):

Wait hold on, this might be /dup #14512. They're both fairly similar. I'm gonna call them dupes until proven otherwise.

@zadjii-msft commented on GitHub (Jan 3, 2023): Wait hold on, this might be /dup #14512. They're both fairly similar. I'm gonna call them dupes until proven otherwise.
Author
Owner

@ghost commented on GitHub (Jan 3, 2023):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Jan 3, 2023): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19059