I need a C++ function (or object) able to tell me if a certain string is an ANSI escape sequence.
So, if I have for example:
std::string ansi = "\033[0m";
I would need something like this:
is_escape_char( ansi )
which returns false or true if the string is an ANSI escape sequence. Is it possible?