mirror of
https://github.com/ollama/ollama.git
synced 2025-10-09 21:53:01 +02:00
use stdout fd for terminal size (#1125)
This commit is contained in:
@@ -398,7 +398,7 @@ func generate(cmd *cobra.Command, model, prompt string, wordWrap bool, format st
|
||||
generateContext = []int{}
|
||||
}
|
||||
|
||||
termWidth, _, err := term.GetSize(int(0))
|
||||
termWidth, _, err := term.GetSize(int(os.Stdout.Fd()))
|
||||
if err != nil {
|
||||
wordWrap = false
|
||||
}
|
||||
|
Reference in New Issue
Block a user