Skip to content

Support vi-mode cursors in Foot Terminal  #8391

Closed

Description

@dit7ya

Currently vi-mode dynamic block and beam cursors do not work in Foot Terminal.

As discussed in https://codeberg.org/dnkl/foot/issues/772 I am suspecting it is going to be an easy fix by just adding foot in the list here

# We need one of these terms.
# It would be lovely if we could rely on terminfo, but:
# - The "Ss" entry isn't a thing in macOS' old and crusty terminfo
# - It is set for xterm, and everyone and their dog claims to be xterm
#
# So we just don't care about $TERM, unless it is one of the few terminals that actually have their own entry.
#
# Note: Previous versions also checked $TMUX, and made sure that then $TERM was screen* or tmux*.
# We don't care, since we *cannot* handle term-in-a-terms 100% correctly.
if not set -q KONSOLE_PROFILE_NAME
and not test -n "$KONSOLE_VERSION" -a "$KONSOLE_VERSION" -ge 200400 # konsole, but new.
and not set -q ITERM_PROFILE
and not set -q VTE_VERSION # which version is already checked above
and not set -q WT_PROFILE_ID
and not set -q XTERM_VERSION
and not string match -q "Apple_Terminal" -- $TERM_PROGRAM
and not string match -rq '^st(-.*)$' -- $TERM
and not string match -q 'xterm-kitty*' -- $TERM
and not string match -q 'rxvt*' -- $TERM
and not string match -q 'alacritty*' -- $TERM
return
end
. I can start a PR.

fish --version = fish, version 3.3.1
uname -a = Linux nixos 5.14.15 #1-NixOS SMP Wed Oct 27 07:59:56 UTC 2021 x86_64 GNU/Linux
echo $TERM = foot```

Activity

  1. added this to the fish 3.4.0 milestone on Nov 8, 2021
  2. faho commented on Nov 8, 2021

    @faho
    Member

    I simply fixed it now.

    In future: For issues this simple, if you're prepared to open a PR you can just do so - answering that we would accept a PR and then reviewing it and merging it is more work than just fixing it.

    (we also don't require an accompanying issue - no need for double bookkeeping!)

  3. added a commit that references this issue on Dec 12, 2021
  4. locked as resolved and limited conversation to collaborators on Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions