Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

Use stdin for term discovery on windows

Daniel Hiltgenc1a81c6fe3e5
diff --git a/cmd/cmd.go b/cmd/cmd.go
index b9afb2e2b..51787348f 100644
--- a/cmd/cmd.go
+++ b/cmd/cmd.go
@@ -900,8 +900,7 @@ func NewCLI() *cobra.Command {
cobra.EnableCommandSorting = false
if runtime.GOOS == "windows" {
- // Enable colorful ANSI escape code in Windows terminal (disabled by default)
- console.ConsoleFromFile(os.Stdout) //nolint:errcheck
+ console.ConsoleFromFile(os.Stdin) //nolint:errcheck
}
rootCmd := &cobra.Command{