Terminal flickers on rapid print #19510

Open
opened 2026-01-31 06:45:30 +00:00 by claunia · 0 comments
Owner

Originally created by @janausis on GitHub (Mar 9, 2023).

Windows Terminal version

1.16.10262.0

Windows build number

10.0.22621.1344

Other Software

Python 3.10

Steps to reproduce

Run this script in windows terminal:

i = 0
from time import sleep
print("\n\n\n")

while True:
    sleep(0.1)
    print("progress made progress made progress made\n\n\n" + str(i) + '\033[1A\033[2K\033[1A\033[2K\033[1A')
    i += 1
    if i > 100:
        i = 0

Expected Behavior

No flickering like on linux terminals.

Behavior:
Text

Progress Bar

Actual Behavior

The print command gets rendered by character so old states before new line cause a flickering effect.

Behavior:
Text
flickering Text
Progress Bar

Originally created by @janausis on GitHub (Mar 9, 2023). ### Windows Terminal version 1.16.10262.0 ### Windows build number 10.0.22621.1344 ### Other Software Python 3.10 ### Steps to reproduce Run this script in windows terminal: ``` i = 0 from time import sleep print("\n\n\n") while True: sleep(0.1) print("progress made progress made progress made\n\n\n" + str(i) + '\033[1A\033[2K\033[1A\033[2K\033[1A') i += 1 if i > 100: i = 0 ``` ### Expected Behavior No flickering like on linux terminals. Behavior: **Text** **Progress Bar** ### Actual Behavior The print command gets rendered by character so old states before new line cause a flickering effect. Behavior: **Text** _flickering Text_ **Progress Bar**
claunia added the Issue-BugResolution-Duplicate labels 2026-01-31 06:45:30 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19510