refactor: replace Bun.stderr and Bun.color with Node.js equivalents
parent
bf35a865ba
commit
d68afcaa55
|
|
@ -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",
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue