[PR #94] [MERGED] fix: ensure cursor color reset in some terminals #1065

Closed
opened 2026-03-14 09:16:28 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opentui/pull/94
Author: @KurtGokhan
Created: 8/27/2025
Status: Merged
Merged: 8/28/2025
Merged by: @kommander

Base: mainHead: ensure-cursor-color-reset


📝 Commits (1)

  • 50ec3bf fix: ensure cursor color reset in some terminals

📊 Changes

2 files changed (+3 additions, -1 deletions)

View changed files

📝 packages/core/src/zig/ansi.zig (+2 -1)
📝 packages/core/src/zig/renderer.zig (+1 -0)

📄 Description

The cursor color wasn't resetting when program is terminated while an input is focused. As I see 112 is the correct ANSI code for resetting cursor color, but I also kept the old code to be sure.

https://github.com/user-attachments/assets/2126aeab-e503-417c-9d67-52f1359e6ffb


🔄 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/anomalyco/opentui/pull/94 **Author:** [@KurtGokhan](https://github.com/KurtGokhan) **Created:** 8/27/2025 **Status:** ✅ Merged **Merged:** 8/28/2025 **Merged by:** [@kommander](https://github.com/kommander) **Base:** `main` ← **Head:** `ensure-cursor-color-reset` --- ### 📝 Commits (1) - [`50ec3bf`](https://github.com/anomalyco/opentui/commit/50ec3bfb1f5a6a327b8c12f77e1b1582253e8055) fix: ensure cursor color reset in some terminals ### 📊 Changes **2 files changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/core/src/zig/ansi.zig` (+2 -1) 📝 `packages/core/src/zig/renderer.zig` (+1 -0) </details> ### 📄 Description The cursor color wasn't resetting when program is terminated while an input is focused. As I see `112` is the correct ANSI code for resetting cursor color, but I also kept the old code to be sure. https://github.com/user-attachments/assets/2126aeab-e503-417c-9d67-52f1359e6ffb --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-14 09:16:28 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#1065
No description provided.