Windows Terminal text bug #17792

Closed
opened 2026-01-31 05:53:35 +00:00 by claunia · 5 comments
Owner

Originally created by @FF69B3 on GitHub (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

Originally created by @FF69B3 on GitHub (Jun 24, 2022). ### Windows Terminal version 1.13.2205.23002 ### Windows build number 10.22621 ### Other Software ![image](https://user-images.githubusercontent.com/94247503/175566703-1ab72aa5-cfba-47a2-8932-331d70632770.png) ![image](https://user-images.githubusercontent.com/94247503/175566850-97216674-cc5a-4944-88ef-1e4f4c5d1729.png) ![image](https://user-images.githubusercontent.com/94247503/175566878-6a37b68b-2a03-4429-a52f-a2e9f69672f7.png) ### Steps to reproduce If you display very long text, it will be disordered ### Expected Behavior ![image](https://user-images.githubusercontent.com/94247503/175567143-f0958646-1a69-4689-b86c-a3ab9acee6b4.png) ### Actual Behavior ![image](https://user-images.githubusercontent.com/94247503/175567165-2239cd40-8a1f-4171-a67d-edd5a42f62b2.png)
claunia added the Needs-TriageIssue-BugNeeds-Tag-FixNeeds-Attention labels 2026-01-31 05:53:35 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Jul 5, 2022):

  • 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)
@zadjii-msft commented on GitHub (Jul 5, 2022): * 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)
Author
Owner

@FF69B3 commented on GitHub (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,

@FF69B3 commented on GitHub (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,
Author
Owner

@zadjii-msft commented on GitHub (Jul 6, 2022):

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.

@zadjii-msft commented on GitHub (Jul 6, 2022): > 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.
Author
Owner

@FF69B3 commented on GitHub (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");

@FF69B3 commented on GitHub (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"); `
Author
Owner

@j4james commented on GitHub (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.

@j4james commented on GitHub (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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17792