So I generally like having my compiler give me as many warning/errors as possible, so I have -Wall -Werror -Wpedantic -Wextra set. Now, I have pedantic giving me a warning because apparently the \e escape in a string literal is not part of the C standard (though it is implemented in both GCC & Clang):
/home/chris/git/chris-monorepo/cpp/ipc-runner/server.cpp:19:11: error: use of non-standard escape character '\e' [-Werror,-Wpedantic]
19 | printf("\e[1;1H\e[2J");
| ^~
What is the best practice for allowing a particular offense? (In other languages I'm used to adding a special comment or a pragma to tell the compiler to skip the warning). I'm technically using C++ so a C++ pragma would work. I would also be ok telling the compiler to specifically skip this ONE check from the -Wpedantic set, however the compiler didn't even tell me the name of the check...
Alternatively, is there a way to write this in a spec-compliant way?