[PR #1086] [CLOSED] Add /clear command via the ANSI method #21003

Closed
opened 2026-04-19 15:23:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/1086
Author: @ThatBlokeJosh
Created: 11/11/2023
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • c8f2a78 Add /clear command via the ANSI method

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 cmd/cmd.go (+3 -0)

📄 Description

Small, but welcome addition in my opinion. Works using the ANSI method from the bottom.

case "/clear":
    fmt.Printf("\x1bc")

🔄 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/1086 **Author:** [@ThatBlokeJosh](https://github.com/ThatBlokeJosh) **Created:** 11/11/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`c8f2a78`](https://github.com/ollama/ollama/commit/c8f2a7880847d8b4576c3692ef292bd8c19df221) Add /clear command via the ANSI method ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+3 -0) </details> ### 📄 Description Small, but welcome addition in my opinion. Works using the ANSI method from the bottom. ```go case "/clear": fmt.Printf("\x1bc") ``` --- <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-19 15:23:06 -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#21003