Skip to content
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

Windows Terminal text bug #13375

Closed
FF69B3 opened this issue Jun 24, 2022 · 5 comments
Closed

Windows Terminal text bug #13375

FF69B3 opened this issue Jun 24, 2022 · 5 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. 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

@FF69B3
Copy link

FF69B3 commented Jun 24, 2022

Windows Terminal version

1.13.2205.23002

Windows build number

10.22621

Other Software

image

image

image

Steps to reproduce

If you display very long text, it will be disordered

Expected Behavior

image

Actual Behavior

image

@FF69B3 FF69B3 added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Jun 24, 2022
@ghost ghost 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 Jun 24, 2022
@zadjii-msft
Copy link
Member

  • Are you resizing the Terminal while running this script?
  • Does it repro in a "Command Prompt" tab/? (I'm theorizing there's a call to change the window size in your PowerShell profile.ps1)

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jul 5, 2022
@FF69B3
Copy link
Author

FF69B3 commented Jul 6, 2022

  • 您是否在运行此脚本时调整终端的大小?
  • 它是否在“命令提示符”选项卡/中重现?(我推测有一个调用来更改您的 PowerShell profile.ps1 中的窗口大小)

yes. But it doesn't change the size, Because I use it in old cmd., c++ console use SetConsoleScreenBufferSize same problem,

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jul 6, 2022
@zadjii-msft
Copy link
Member

Because I use it in old cmd., c++ console use SetConsoleScreenBufferSize same problem

Could you clarify here/? What are the exact repro steps - resizing the terminal most certainly would affect the outcome here. Similarly with attempting to call SetConsoleScreenBufferInfo to change the buffer size - that likely won't work in Terminal at all the same way you'd expect from the vintage console.

@ghost ghost added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Attention The core contributors need to come back around and look at this ASAP. labels Jul 6, 2022
@FF69B3
Copy link
Author

FF69B3 commented Jul 7, 2022

因为我在旧的cmd中使用它,所以c ++控制台使用SetConsoleScreenBufferSize同样的问题

你能在这里澄清一下吗/?确切的复制步骤是什么 - 调整终端的大小肯定会影响这里的结果。与尝试调用 SetConsoleScreenBufferInfo 来更改缓冲区大小类似 - 这可能在终端中根本无法像您对老式控制台所期望的那样工作。

When I remove the code that tries to change the console window size, it works fine. It's just that the terminal can't change the console window size like the old console.

bat code :
mode con cols=40 lines=40

c++ code:
void SetConsoleWindowSize( SHORT width, SHORT height )
{
HANDLE hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);
SMALL_RECT wrt = { 0, 0, width-1, height-1 };
SetConsoleWindowInfo( hStdOutput, TRUE, &wrt );
COORD coord = { width, height };‘
SetConsoleScreenBufferSize( hStdOutput, coord );
}

or

system("mode con cols=40 lines=40");

@ghost ghost added Needs-Attention The core contributors need to come back around and look at this ASAP. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jul 7, 2022
@j4james
Copy link
Collaborator

j4james commented Jul 7, 2022

It's just that the terminal can't change the console window size like the old console.

@FF69B3 That issue is being tracked in #5094.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Attention The core contributors need to come back around and look at this ASAP. 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

3 participants