mirror of
https://github.com/ollama/ollama.git
synced 2026-03-28 03:08:44 +07:00
16 lines
255 B
Go
16 lines
255 B
Go
//go:build windows
|
|
|
|
package agent
|
|
|
|
import (
|
|
"os"
|
|
|
|
"golang.org/x/sys/windows"
|
|
)
|
|
|
|
// flushStdin clears any buffered console input on Windows.
|
|
func flushStdin(_ int) {
|
|
handle := windows.Handle(os.Stdin.Fd())
|
|
_ = windows.FlushConsoleInputBuffer(handle)
|
|
}
|