fix: add --cursor-blink flag to disable terminal cursor blink#54
Open
fuleinist wants to merge 1 commit into
Open
fix: add --cursor-blink flag to disable terminal cursor blink#54fuleinist wants to merge 1 commit into
fuleinist wants to merge 1 commit into
Conversation
On macOS Kitty the blinking cursor triggers constant redraws (~500ms), making text selection and link hover nearly impossible. Add a --cursor-blink flag (default true) so users can disable blinking with: sbb-tui --cursor-blink=false Fixes Necrom4#27
Owner
|
Thanks for the PR! I recommend you go with a solution like this one: # ui/model.go
# in the m.inputs range of NewModel
t.Cursor.Style = m.styles.active
+ t.Cursor.SetMode(cursor.CursorStatic) # don't forget to import `cursor` at the top of the file too
# in Init()
func (m appModel) Init() tea.Cmd {
- return tea.Batch(textinput.Blink, checkVersionCmd(m.currentVersion))
+ return checkVersionCmd(m.currentVersion)
}Also concerning your last commit, please for the next modifications format the Lastly I'd very much rather have the cursor blink option as a default (to "true") in the config file rather than as a flag, as it's an option people will always want ON and it'd be anoying to constantly pass the flag. Don't forget to document your changes in the "config" section of the README.md! |
This was referenced Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On macOS Kitty the blinking cursor triggers constant redraws (~500ms), making text selection and link hover nearly impossible.
This adds a
--cursor-blinkflag (default: true) so affected users can disable blinking with:Fixes #27