-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
Description
What version of Bun is running?
1.3.5+1e86cebd7
What platform is your computer?
Linux 6.14.0-37-generic x86_64 x86_64
What steps can reproduce the bug?
// index.js
import { Writable } from "node:stream";
import { styleText } from "node:util";
const streamTTY = new class extends Writable {
isTTY = true;
};
const streamNoTTY = new class extends Writable {
isTTY = false;
};
console.log(styleText("bgYellow", "TTY", { stream: streamTTY }));
console.log(styleText("bgYellow", "No TTY", { stream: streamNoTTY }));bun index.jsWhat is the expected behavior?
TTY(yellow background)No TTY(no background)
What do you see instead?
TTY(yellow background)No TTY(yellow background)
Additional information
No response