Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
handle ctrl+z
Michael Yang88620e983a75
diff --git a/readline/readline.go b/readline/readline.goindex 88813fc6d..781ac8a3b 100644--- a/readline/readline.go+++ b/readline/readline.go@@ -191,6 +191,15 @@ func (i *Instance) Readline() (string, error) {buf.ClearScreen()case CharCtrlW:buf.DeleteWord()+ case CharCtrlZ:+ if err := UnsetRawMode(fd, termios); err != nil {+ return "", err+ }++ syscall.Kill(0, syscall.SIGSTOP)++ // on resume...+ return "", nilcase CharEnter:output := buf.String()if output != "" {