scream-code 0.4.4 → 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.mjs +12 -1
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -135648,7 +135648,18 @@ function runLoadingAnimation(theme = "dark") {
|
|
|
135648
135648
|
}
|
|
135649
135649
|
process$1.on("SIGINT", interrupt);
|
|
135650
135650
|
process$1.on("SIGTERM", interrupt);
|
|
135651
|
-
|
|
135651
|
+
try {
|
|
135652
|
+
stdin.setRawMode(true);
|
|
135653
|
+
} catch {
|
|
135654
|
+
process$1.off("SIGINT", interrupt);
|
|
135655
|
+
process$1.off("SIGTERM", interrupt);
|
|
135656
|
+
stdout.write("\x1B[?25h");
|
|
135657
|
+
stdout.write("\x1B[?1049l");
|
|
135658
|
+
for (const line of LOGO) stdout.write(`${fg(...LOGO_RGB)}${line}${RESET}\n`);
|
|
135659
|
+
stdout.write(`${BOLD}${fg(...accent)}正在唤醒核心...${RESET}\n`);
|
|
135660
|
+
resolve();
|
|
135661
|
+
return;
|
|
135662
|
+
}
|
|
135652
135663
|
stdin.on("data", onData);
|
|
135653
135664
|
render();
|
|
135654
135665
|
const timer = setInterval(tick, SHEEN_INTERVAL_MS);
|