Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to modify the buffer height when debugging the console exe?? #15815

Closed
wxuefei opened this issue Aug 10, 2023 · 1 comment
Closed

How to modify the buffer height when debugging the console exe?? #15815

wxuefei opened this issue Aug 10, 2023 · 1 comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting

Comments

@wxuefei
Copy link

wxuefei commented Aug 10, 2023

Description of the new feature/enhancement

I can modify the console buffer height use the below code when I debugging the console exe with VC & cmd, but it doesn't work in WindowsTerminal, the buffer height seems always is 9030, how to modify it ?

system("mode con:cols=120 lines=20000");

or

SetConsoleScreenBufferSize(GetStdHandle(STD_OUTPUT_HANDLE), { 120,20000 });

Proposed technical implementation details (optional)

@wxuefei wxuefei added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Aug 10, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Aug 10, 2023
@zadjii-msft
Copy link
Member

This isn't something that's possible with the Terminal, or really something we're planning on supporting. Out of curiosity, why would you like to change the history size at runtime from a CLI application/?

(changing the windows dimensions is tracked in #5094, but that's definitely not the buffer height)

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Aug 10, 2023
@microsoft microsoft locked and limited conversation to collaborators Aug 10, 2023
@DHowett DHowett converted this issue into discussion #15818 Aug 10, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting
Projects
None yet
Development

No branches or pull requests

2 participants