Terminal.Gui icon indicating copy to clipboard operation
Terminal.Gui copied to clipboard

Sometimes console looks "Torn" - At app startup and sometimes after resizing

Open ttool22 opened this issue 3 years ago • 5 comments

Wundows 11 update A clear and concise description of what the bug is. image

ttool22 avatar Dec 12 '22 12:12 ttool22

Please, indicate what driver and what console do you are using. What do you are running? Something from the UICatalog or your own code? If is your code can you share, please.

BDisp avatar Dec 12 '22 12:12 BDisp

This is also happening to me on Windows 11.

Steps to Reproduce

Build my program in VS 2022 in either debug or release mode, the window looks normal:

dioscuri-normal

Next, resize the terminal window (my program will resize responsively), but then close it at a different size than what you started with. Afterwards, build the project again and the window looks like this:

term-output-resized

The issue persists until I relaunch Visual Studio. My codebase is here:

https://github.com/Small-NET/Dioscuri

markjamesm avatar Feb 09 '23 02:02 markjamesm

Sorry but I can't reproduce this with the information you provided and with your codebase . The only issue I seen is the app crash if we resize the the height to zero, but this was already fixed in PR #2268 and #2294. If this still happens, please let me know, by providing a .gif file of all the steps. You can try to add the Terminal.Gui project instead of the nuget package to only check if this issue still happens.

BDisp avatar Feb 09 '23 15:02 BDisp

I see what the OP is seeing here occastionally when running Terminal.Gui apps in the VS debugger. When the app initially loads, the screen is corrupted as descirbed. Resizing the console usually (but not always!) fixes it.

Closing the console created by the debugger and re-running the app usually fixes it.

I have not dug into it because i sorta assumed it was a Windows Terminal bug. I am not sure though.

tig avatar Feb 10 '23 00:02 tig

Renaming for more clarity. I still see this sometimes.

tig avatar Jun 12 '25 13:06 tig

I have not seen this in ages. Closing as not repo!

tig avatar Dec 03 '25 17:12 tig