[PR #3363] [MERGED] Detect arrow keys on windows #11133

Closed
opened 2026-04-12 23:22:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/3363
Author: @jmorganca
Created: 3/26/2024
Status: Merged
Merged: 3/26/2024
Merged by: @jmorganca

Base: mainHead: jmorganca/fix-windows-input


📝 Commits (2)

  • 0c117e7 detect arrow keys on windows
  • 89a5ce3 add some helpful comments

📊 Changes

1 file changed (+14 additions, -39 deletions)

View changed files

📝 readline/term_windows.go (+14 -39)

📄 Description

Also simplifies to use the golang.org/x/sys/windows package. Note: this could be simplified more using the x/term package as well on the unix side of things, but I kept this small to fix windows first

Fixes https://github.com/ollama/ollama/issues/2639


🔄 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/3363 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 3/26/2024 **Status:** ✅ Merged **Merged:** 3/26/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/fix-windows-input` --- ### 📝 Commits (2) - [`0c117e7`](https://github.com/ollama/ollama/commit/0c117e7212803bc723b5e98b5933c4aeab536c5f) detect arrow keys on windows - [`89a5ce3`](https://github.com/ollama/ollama/commit/89a5ce3a5c48e5b76f78d7f76d5f803044e2a78a) add some helpful comments ### 📊 Changes **1 file changed** (+14 additions, -39 deletions) <details> <summary>View changed files</summary> 📝 `readline/term_windows.go` (+14 -39) </details> ### 📄 Description Also simplifies to use the `golang.org/x/sys/windows` package. Note: this could be simplified more using the `x/term` package as well on the unix side of things, but I kept this small to fix windows first Fixes https://github.com/ollama/ollama/issues/2639 --- <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-12 23:22:05 -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#11133