mirror of
https://github.com/ollama/ollama.git
synced 2025-03-28 10:41:51 +01:00
19 lines
269 B
Go
19 lines
269 B
Go
//go:build !windows
|
|
|
|
package readline
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func handleCharCtrlZ(fd int, termios *Termios) (string, error) {
|
|
if err := UnsetRawMode(fd, termios); err != nil {
|
|
return "", err
|
|
}
|
|
|
|
syscall.Kill(0, syscall.SIGSTOP)
|
|
|
|
// on resume...
|
|
return "", nil
|
|
}
|