c++ colored output

#include <iostream>

int main() {
    std::cout << "\033[1;31mThis is red text\033[0m" << std::endl;
    std::cout << "\033[1;32mThis is green text\033[0m" << std::endl;
    std::cout << "\033[1;33mThis is yellow text\033[0m" << std::endl;
    return 0;
}