[PR #1420] [MERGED] os specific ctrl-z #15847

Closed
opened 2026-04-16 05:10:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1420
Author: @BruceMacD
Created: 12/7/2023
Status: Merged
Merged: 12/11/2023
Merged by: @BruceMacD

Base: mainHead: brucemacd/ctrlz


📝 Commits (3)

📊 Changes

3 files changed (+25 additions, -8 deletions)

View changed files

📝 readline/readline.go (+1 -8)
readline/readline_unix.go (+18 -0)
readline/readline_windows.go (+6 -0)

📄 Description

Add OS specific readline functions. Windows does not support these suspend system calls, so make ctrl-z a no-op on windows. This fixes development windows native builds.

resolves #1414


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/1420 **Author:** [@BruceMacD](https://github.com/BruceMacD) **Created:** 12/7/2023 **Status:** ✅ Merged **Merged:** 12/11/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `main` ← **Head:** `brucemacd/ctrlz` --- ### 📝 Commits (3) - [`cbf824c`](https://github.com/ollama/ollama/commit/cbf824cd2365df371443ff71ef7e1bc19bb43c6a) os specific ctrl-z - [`2bcf0b7`](https://github.com/ollama/ollama/commit/2bcf0b781fe453f58564d0a5a62fde021e829683) use state instead of termios - [`ce7f889`](https://github.com/ollama/ollama/commit/ce7f889ecc01857c9e4f4b6ad575c143bd4b7820) Update readline_windows.go ### 📊 Changes **3 files changed** (+25 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `readline/readline.go` (+1 -8) ➕ `readline/readline_unix.go` (+18 -0) ➕ `readline/readline_windows.go` (+6 -0) </details> ### 📄 Description Add OS specific readline functions. Windows does not support these suspend system calls, so make ctrl-z a no-op on windows. This fixes development windows native builds. resolves #1414 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 05:10:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#15847