On 5/5/26 5:09 PM, David C Rankin wrote:
On 5/5/26 4:49 AM, Pocket wrote:
That doesn't work on my system, which is a rpi 5 that I have built all the packages using the Archlinux and Alarm PKGBUILDS.

I still see the issue

echo $TERM
xterm-256color

vim -T ansi Nothing
pp


Pocket,

after you open vim, what does:

 :echo v:termresponse

show? It will be something like "^[[>0;115;0c" (mine). Let me know and I'll add that to the bug report.

The problem is a patch to vim /src/term.c:

diff --git a/src/term.c b/src/term.c
index 37f05ed01..300d503b0 100644
--- a/src/term.c
+++ b/src/term.c
@@ -5173,7 +5173,7 @@ handle_version_response(int first, int *arg, int argc, char_u *tp)

     // libvterm sends 0;100;0
     // Konsole sends 0;115;0 and works the same way
-    if ((version == 100 || version == 115) && arg[0] == 0 && arg[2] == 0)
+    if ((version == 100) && arg[0] == 0 && arg[2] == 0)
     {
         // If run from Vim $COLORS is set to the number of
         // colors the terminal supports.  Otherwise assume

That removed recognizing terminals that report 115.


I am gonna try the following sed in the PKGBUILD

sed -i term.c -e '/((version == 100/s/ || version == 115//'

placed in the prepare function like this

prepare() {
  (cd vim/src

    sed -i term.c -e '/((version == 100/s/ || version == 115//'
    # define the place for the global (g)vimrc file (set to /etc/vimrc)
    sed -E 's|^.*(#define SYS_.*VIMRC_FILE.*").*$|\1|g' -i feature.h
    sed -E 's|^.*(#define VIMRC_FILE.*").*$|\1|g' -i feature.h
    autoconf
  )
  cp -a vim gvim
}

Added this to

package_vim-runtime() {

  # rc files
  # install -Dm 644 "${srcdir}"/vimrc "${pkgdir}"/etc/vimrc
  install -Dm 644 "${srcdir}"/archlinux.vim "${pkgdir}"/etc/vimrc
  install -Dm 644 "${srcdir}"/archlinux.vim \
    "${pkgdir}"/usr/share/vim/vimfiles/archlinux.vim

That replaces vimrc with archlinux.vim in the /etc/directory


BTW the term I am using is qterminal

--
Hindi madali ang maging ako

Reply via email to