Skip to content

fish_vi_cursor: Remove terminal checks#10693

Merged
faho merged 1 commit into
fish-shell:masterfrom
faho:no-more-cursor-checks
Aug 30, 2024
Merged

fish_vi_cursor: Remove terminal checks#10693
faho merged 1 commit into
fish-shell:masterfrom
faho:no-more-cursor-checks

Conversation

@faho
Copy link
Copy Markdown
Member

@faho faho commented Aug 30, 2024

We keep having to extend these with new terminals, and I can no longer find a terminal that fails this.

Even emacs' ansi-term can now at least reliably ignore the sequence.

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • [N/A] Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

We keep having to extend these with new terminals, and I can no longer
find a terminal that fails this.

Even emacs' ansi-term can now at least reliably ignore the sequence.
@faho faho added this to the fish 4.0 milestone Aug 30, 2024
set varname fish_cursor_unknown
end
$function \$\$varname
__fish_cursor_xterm \$\$varname
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.

LGTM, the reason why I didn't remove these checks is simply that I didn't look into what the cursor control sequences look like.
Looks like they use CSI (and have a space in the middle, oddly) which we already send.

@faho faho merged commit 983746a into fish-shell:master Aug 30, 2024
@faho faho deleted the no-more-cursor-checks branch August 30, 2024 19:28
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants