fix: piping

This commit is contained in:
Aiden Cline
2025-11-03 22:36:01 -06:00
parent c103052f93
commit f501501791
2 changed files with 10 additions and 1 deletions

View File

@@ -30,6 +30,9 @@ import { TuiEvent } from "./event"
import { KVProvider, useKV } from "./context/kv"
async function getTerminalBackgroundColor(): Promise<"dark" | "light"> {
// can't set raw mode if not a TTY
if (!process.stdin.isTTY) return "dark"
return new Promise((resolve) => {
let timeout: NodeJS.Timeout