mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 07:46:59 +00: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