Alright, I have an assignment in which I have to use ANSI Escape Sequences to colorize output on the console. So "\033[0;31m" colorizes text after it to be red for example.
When I run the following:
cout << "\033[0;31mhello \033[0;37mworld";
It works as it is supposed to, with "hello" printing in red, and then going back to grey for "world"
Although, when I return this exact same string from a function and print it, it doesn't work, it just prints out the escape sequence. I am pulling my hair out here. I don't know if anyone would know anything about this. Any insight would be appreciated.