Clear all text from a terminal using TypeScript
Advertisements
import * as process from 'process'; // Clear all text from the terminal window. function clearTerminal(): void { process.stdout.write("\x1Bc") }