refactor: replace Bun.stderr and Bun.color with Node.js equivalents

pull/16273/head
Dax Raad 2026-03-05 22:20:16 -05:00
parent bf35a865ba
commit d68afcaa55
1 changed files with 3 additions and 3 deletions

View File

@ -25,12 +25,12 @@ export namespace UI {
export function println(...message: string[]) { export function println(...message: string[]) {
print(...message) print(...message)
Bun.stderr.write(EOL) process.stderr.write(EOL)
} }
export function print(...message: string[]) { export function print(...message: string[]) {
blank = false blank = false
Bun.stderr.write(message.join(" ")) process.stderr.write(message.join(" "))
} }
let blank = false let blank = false
@ -44,7 +44,7 @@ export namespace UI {
const result: string[] = [] const result: string[] = []
const reset = "\x1b[0m" const reset = "\x1b[0m"
const left = { const left = {
fg: Bun.color("gray", "ansi") ?? "", fg: "\x1b[90m",
shadow: "\x1b[38;5;235m", shadow: "\x1b[38;5;235m",
bg: "\x1b[48;5;235m", bg: "\x1b[48;5;235m",
} }