cpp-terminal
cpp-terminal copied to clipboard
Visual studio code terminal issue
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:
The crash happens randomly, i'm not sure yet on how to replicate it.
Thanks for noticing! I also use vscode. We need to fix that.
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.
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