Skip to content

Commit

Permalink
Merge pull request ollama#3068 from dhiltgen/win_pipe
Browse files Browse the repository at this point in the history
Use stdin for term discovery on windows
  • Loading branch information
dhiltgen authored Mar 14, 2024
2 parents 5ce997a + c1a81c6 commit da20786
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit da20786

Please sign in to comment.