lib-curses
Version:
Simple node.js library for work with console
13 lines (12 loc) • 308 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.clearScreen = clearScreen;
/**
* Clears terminal screen and moves cursor to top-left corner.
*
* @returns {void}
*/
function clearScreen() {
process.stdout.write('\x1b[2J');
process.stdout.write('\x1b[0;0H');
}
;