[PR #7468] [CLOSED] Add a command to clear the screen #22973

Closed
opened 2026-04-19 16:41:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7468
Author: @cootshk
Created: 11/2/2024
Status: Closed

Base: mainHead: main


📝 Commits (1)

  • d12be39 ollama run: allow /clearscreen to clear the screen

📊 Changes

1 file changed (+7 additions, -1 deletions)

View changed files

📝 cmd/interactive.go (+7 -1)

📄 Description

/clearscreen clears the screen
Kind of like Ctrl+L
I use ansi escape codes because I don't want to deal with the buffer

I made this because I have Ctrl+L bound to something else and wanted a quick slash command similar to /clear


🔄 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/7468 **Author:** [@cootshk](https://github.com/cootshk) **Created:** 11/2/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`d12be39`](https://github.com/ollama/ollama/commit/d12be39c16a50e028ef30b7c83c3112a577d0728) ollama run: allow /clearscreen to clear the screen ### 📊 Changes **1 file changed** (+7 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `cmd/interactive.go` (+7 -1) </details> ### 📄 Description `/clearscreen` clears the screen Kind of like Ctrl+L I use [ansi escape codes](https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797) because I don't want to deal with the buffer I made this because I have Ctrl+L bound to something else and wanted a quick slash command similar to `/clear` --- <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 16:41:42 -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#22973