mirror of
https://github.com/ollama/ollama.git
synced 2026-04-17 22:54:05 +02:00
fix formatting when exiting ollama run
This commit is contained in:
@@ -76,14 +76,15 @@ func (i *Instance) Readline() (string, error) {
|
||||
}
|
||||
|
||||
r, err := i.Terminal.Read()
|
||||
if err != nil {
|
||||
return "", io.EOF
|
||||
}
|
||||
|
||||
if buf.IsEmpty() {
|
||||
fmt.Print(ClearToEOL)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
return "", io.EOF
|
||||
}
|
||||
|
||||
if escex {
|
||||
escex = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user