mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-28 03:49:31 +00:00
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:
parent
935d1f5fe9
commit
31c2454d59
2 changed files with 8 additions and 8 deletions
|
|
@ -27,7 +27,7 @@ function getErrorMessage(err: unknown): string {
|
|||
}
|
||||
|
||||
function handleCancel(): never {
|
||||
p.cancel("Cancelled.");
|
||||
console.error(pc.red("Operation cancelled."));
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue