fix: Replace Unicode box-drawing characters with ASCII

- Changed update banner to use +, -, | instead of Unicode box characters
- Replaced arrow (→) with ASCII arrow (->)
- Changed p.cancel() to plain console.error to avoid Unicode bullet
- Ensures clean rendering on all terminals regardless of Unicode support

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Sprite 2026-02-10 07:19:30 +00:00
parent 935d1f5fe9
commit 31c2454d59
2 changed files with 8 additions and 8 deletions

View file

@ -27,7 +27,7 @@ function getErrorMessage(err: unknown): string {
}
function handleCancel(): never {
p.cancel("Cancelled.");
console.error(pc.red("Operation cancelled."));
process.exit(0);
}

View file

@ -48,19 +48,19 @@ function compareVersions(current: string, latest: string): boolean {
function performAutoUpdate(latestVersion: string): void {
console.error(); // Use stderr so it doesn't interfere with parseable output
console.error(pc.yellow("┌────────────────────────────────────────────────────────────┐"));
console.error(pc.yellow("+------------------------------------------------------------+"));
console.error(
pc.yellow(" ") +
pc.bold(`Update available: v${VERSION} `) +
pc.yellow("| ") +
pc.bold(`Update available: v${VERSION} -> `) +
pc.green(pc.bold(`v${latestVersion}`)) +
pc.yellow(" ")
pc.yellow(" |")
);
console.error(
pc.yellow(" ") +
pc.yellow("| ") +
pc.bold("Updating automatically...") +
pc.yellow(" ")
pc.yellow(" |")
);
console.error(pc.yellow("└────────────────────────────────────────────────────────────┘"));
console.error(pc.yellow("+------------------------------------------------------------+"));
console.error();
try {