/**
 * MK2 Terminal Restore
 *
 * Restore terminal state on exit
 */
/**
 * Restore terminal state
 */
export function restoreTerminal() {
    try {
        // Show cursor
        process.stdout.write('\x1b[?25h');
        // Reset colors
        process.stdout.write('\x1b[0m');
        // Move cursor to bottom
        process.stdout.write('\x1b[999;999H');
    }
    catch {
        // Ignore errors during restore
    }
}
//# sourceMappingURL=terminalRestore.js.map