Hi.
I've been having a slight issue that I haven't sorted out yet: I mostly use `git` from the VTE (for some reasons that are not relevant to the issue). Mouse wheel scrolling doesn't seem to work with `git` commands when run from the VTE, i.e. the _window_ is scrolled instead of the _text_. What I expect is the text to scroll with the wheel, as if I had pressed the UP or DOWN cursor keys.
I'm using this command as the shell for the VTE: `/bin/bash --rcfile ~/.vterc`
File `.vterc` is a custom script I wrote to load a minimalist configuration for `bash`.
Now here's what I've noticed after investigating:
* scrolling works as expected when I run `less <long file>` from the VTE * scrolling works as expected when viewing `man` pages from the VTE * scrolling works as expected when I load `zsh` from the VTE and then type GIT commands that involve the pager (aka `less`) * scrolling works as expected when I run `git [...] | less --raw` in the VTE... except _I loose colouring_ * scrolling does **not** work as expected when I configure the pager as `less -FX` in the VTE * scrolling does **not** work as expected when I configure the pager as `less --raw` in the VTE * scrolling does **not** work as expected when I load a new instance of `bash` in the VTE * scrolling does **not** work as expected when I use `/bin/bash` as the VTE shell, which rules out my custom RC as causing the issue
So the issue seems to be a combination between Geany AND the VTE AND Bash AND Git. I don't know where to lookup next. Do you have any hint?
P.S. : I'm running Manjaro Linux and Geany 2.0 (built 2023-10-23)
Here's my custom startup RC file (aka `~/.vterc`): ```sh # This file is sourced by Geany terminal (VTE). Only a subset of the # full profile is loaded.
# check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize
# Run a selection of common profile scripts . /etc/profile.d/aliases.sh . /etc/profile.d/gcc-colors.sh . /etc/profile.d/histrc.sh
# Include this profile's aliases [ -f "$HOME/.sh_aliases" ] && . $HOME/.sh_aliases
# To be run only under bash if test "$BASH"; then # Enable colourful terminal windows . /etc/profile.d/prompt.sh
# Enable GIT completion . /usr/share/bash-completion/completions/git
# Redirect history when running in Geany's terminal. Also avoid the # ominous message "expect trouble" about screen resolution... if ps --no-headers -p $PPID -o comm 2>/dev/null | grep -q geany; then HISTIGNORE="$HISTIGNORE:*geany_run_script*" HISTFILE="$HOME/.cache/geany/history" return fi fi ```