Skip to content

rioterm: use vi-cursor color while in Vi mode - #1932

Open
TanbirRamim wants to merge 1 commit into
raphamorim:mainfrom
TanbirRamim:fix-vi-cursor-color
Open

TanbirRamim wants to merge 1 commit into
raphamorim:mainfrom
TanbirRamim:fix-vi-cursor-color

Conversation

@TanbirRamim

@TanbirRamim TanbirRamim commented Sep 12, 2026

Copy link
Copy Markdown

The vi-cursor color from [colors] was parsed but never read, so the cursor kept the cursor color (or the OSC 12 color) after entering Vi mode. Each context now records whether its terminal is in Vi mode when the frame is snapshotted, and the cursor and trail cursor use vi-cursor while it is on. I added unit tests for the color choice (they fail on main) and ran cargo test -p rioterm, cargo fmt --check and cargo clippy -p rioterm --all-targets -- -D warnings.

Fixes #1904

The vi-cursor color was parsed into the config but the renderer always
drew the cursor with the cursor color (or OSC 12), so entering Vi mode
never changed it. Snapshot Vi mode per context and pick vi-cursor for
the cursor and the trail cursor while it is active.

Fixes raphamorim#1904
Copilot AI lite review requested due to automatic review settings September 12, 2026 23:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vi-cursor color config option is parsed but never applied — cursor always uses cursor color

2 participants