How do I use ANSI utility codes within Visual Studio Code?

Viewed 26

I am using C++ in Visual Studio Code and want to get ANSI to work within it. I use Replit a lot for class at uni, and that's just what I'm familiar with, very silly I know.

Either way, I'm trying to get VSC to know what I mean when I type:

cout << "\033[2J\033[0;0H\n";

This code is supposed to clear the screen [2J and reset the cursor position back to the top left [0;0H.

I know that ANSI is primarily used for text fonts and stylizing, but I also know there are some utility codes that can be used as well, and I'm interested in getting those to work within my environment.

Any tips?

0 Answers
Related