looking at the source code of create-react-app, I see a tool file clearConsole.js , which can clear the console:
.function clearConsole() {
process.stdout.write(process.platform === "win32" ? "\x1B[2J\x1B[0f" : "\x1B[2J\x1B[3J\x1B[H");
}
1. What are "x1B [2Jx1B [0f" and "x1B [2Jx1B] [3Jx1B [H"] here?
2. Why does this have the effect of clearing the console?
Thank you!