Windows API GetConsoleScreenBufferInfo() does not return expected values #22750

Closed
opened 2026-01-31 08:22:22 +00:00 by claunia · 2 comments
Owner

Originally created by @DKBS13 on GitHub (Jan 7, 2025).

Windows Terminal version

Windows Console Host

Windows build number

No response

Other Software

No response

Steps to reproduce

In windows 11 console host (not windows terminal), F11 go to full screen, Use CTRL+Mouse Wheel zoom in/out, there is an issue: Windows API GetConsoleScreenBufferInfo() returns realtime dwSize and srWindow values, not following windows font scaling operation. F11 again, the expected values have returned.

Expected Behavior

GetConsoleScreenBufferInfo() return realtime values

Actual Behavior

GetConsoleScreenBufferInfo() return old values until hit F11 key

Originally created by @DKBS13 on GitHub (Jan 7, 2025). ### Windows Terminal version Windows Console Host ### Windows build number _No response_ ### Other Software _No response_ ### Steps to reproduce In windows 11 console host (not windows terminal), F11 go to full screen, Use CTRL+Mouse Wheel zoom in/out, there is an issue: Windows API GetConsoleScreenBufferInfo() returns realtime dwSize and srWindow values, not following windows font scaling operation. F11 again, the expected values have returned. ### Expected Behavior GetConsoleScreenBufferInfo() return realtime values ### Actual Behavior GetConsoleScreenBufferInfo() return old values until hit F11 key
claunia added the Needs-TriageIssue-BugNeeds-Author-FeedbackNo-Recent-Activity labels 2026-01-31 08:22:22 +00:00
Author
Owner

@carlos-zamora commented on GitHub (Jan 22, 2025):

Thanks for filing! What windows build are you using /?

@carlos-zamora commented on GitHub (Jan 22, 2025): Thanks for filing! What windows build are you using /?
Author
Owner

@microsoft-github-policy-service[bot] commented on GitHub (Jan 27, 2025):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@microsoft-github-policy-service[bot] commented on GitHub (Jan 27, 2025): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**. <!-- Policy app identification https://img.shields.io/static/v1?label=PullRequestIssueManagement. -->
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#22750