Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function clearScreen () {
diff.update('')
// Ensure it's _completely_ cleared so that nothing lingers between views.
// Some views (*cough* log *cough*) don't use ansi-diff so we can't just rely on that.
process.stdout.write(ansi.erase.display(2))
}