cpp-terminal icon indicating copy to clipboard operation
cpp-terminal copied to clipboard

Visual studio code terminal issue

Open MCWertGaming opened this issue 4 years ago • 3 comments

Hey, i encountered some problems with cpp-terminal while working inside of visual studio code. The window class causes wrong colors on wrong parts on the screen and visual studio crashes sometimes while debugging. I will look into the cause (and will try to fix that) later on.

Here is what I mean: image

The crash happens randomly, i'm not sure yet on how to replicate it.

MCWertGaming avatar Feb 28 '21 14:02 MCWertGaming

Thanks for noticing! I also use vscode. We need to fix that.

certik avatar Feb 28 '21 17:02 certik

I have found an fix on this problem. Using "\n" while having a custom background color results in this effect. The foreground color has no issue with this at all. So we just need to make sure that Window and Window_24bit do "\033[0m" before "'\n". 4bit and 8bit colors have the same issue.

MCWertGaming avatar Apr 05 '21 16:04 MCWertGaming

I have created an issue on their github: https://github.com/microsoft/vscode/issues/120569 Also I have created a feature request on supporting more ANSI codes in the vscode integrated terminal https://github.com/microsoft/vscode/issues/120569

MCWertGaming avatar Apr 05 '21 18:04 MCWertGaming