mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-24 17:44:49 +00:00
refactor: replace Bun.stderr and Bun.color with Node.js equivalents
This commit is contained in:
@@ -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",
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user