Either it's just me, or this is such an old limitation that we all simply learned to live with it :)
So, for me, mouse doesn't work in either $EDITOR
when composing/replying, or in the :term
.
aerc 0.10.0-23-g83e0e26-dirty
I can confirm this and would like to add that it also doesn't work when displaying emails. My pager is set to the default "less -R".
aerc 0.11.0
Do you have:
[ui] mouse-enabled=truein
aerc.conf
?
Yes.
Then this is expected behaviour. Aerc captures mouse events and does not forward them to the underlying application running in its terminal emulator.
You can try disabling mouse for aerc, and let the pager,
$EDITOR
or:term
see the mouse events. This is not guaranteed to work however depending on the applications. The terminal capabilities of aerc's:term
are not "standard" likexterm
orvt100
.We would need to look deeper into libvterm code to understand what is expected to happen.
You can try disabling mouse for aerc, and let the pager, $EDITOR or :term see the mouse events.
Thanks a lot, that worked for me!
You can try disabling mouse for aerc, and let the pager, $EDITOR or :term see the mouse events.
For me, this doesn't work.
I set
mouse-enabled=false
inaerc.conf
, and the mouse didn't work both in aerc (expected) and in$EDITOR
when composing / replying (my$EDITOR
is Vim withset mouse=a
) or:term
's applications (like Midnight Commander, for instance). Just reporting :)(aerv v.0.11.0)
This should be resolved with https://git.sr.ht/~rjarry/aerc/commit/599b9f6d468ffb31665d0d97f4ae09ba651d306a
Partially :) I still have problems with Vim (though the mouse seems to work in some other applications, like the Midnight Commander, for example).
I run aerc, open
:term
, runvim -u NONE +'set mouse=a' +'set showcmd'
, and the cursor in Vim moves to some almost random locations when I click, while theshowcmd
option reports things like18m
,22m
,11m
etc in the statusline.
On Sun Sep 25, 2022 at 8:23 AM CDT, ~john1doe wrote:
Partially :) I still have problems with Vim (though the mouse seems to work in some other applications, like the Midnight Commander, for example).
I run aerc, open
:term
, runvim -u NONE +'set mouse=a' +'set showcmd'
, and the cursor in Vim moves to some almost random locations when I click, while theshowcmd
option reports things like18m
,22m
,11m
etc in the statusline.-- View on the web: https://todo.sr.ht/~rjarry/aerc/46#event-207115
Are you running the latest master? Robin just applied a patch that updated tcell-term, which has some rendering bug fixes (particularly some I found in vim)
Are you running the latest master?
Today's latest master, commit da10dae8.
May be the
resolved/fixed
status should be revoked for this not to get buried among closed tickets? It's certainly not resolved from my side :)
~rockorager, I confirm that opening
:term
and run/usr/bin/vim -u NONE +'set mouse=a' +'set showcmd'
withmouse-enabled=true
results in erratic behaviour. Withmouse-enabled=false
, mouse events seem not forwarded to vim.
~john1doe, can you confirm that your mouse works properly outside of aerc's terminal?
~john1doe, can you also try :set ttymouse=sgr and see if it fixes it?
EDIT: also what terminal are you using?
@rjarry, it does :) As I said above, it even worked in other applications in aerc's term, the problem was Vim. And now @rockorager's hint,
set ttymouse=sgr
, seems to solve it (thanks, Tim! As per your question, it's mainly kitty, but I was testing in xterm, too).So, we can probably close this now, thank you guys for support.
Cheers
Tim Culverhouse referenced this ticket in commit 9433a79.