Bug 392794 - Option to disable mouse support
Summary: Option to disable mouse support
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: emulation (show other bugs)
Version: 17.04.2
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-06 10:13 UTC by Simon
Modified: 2022-11-04 00:35 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: v22.04.0


Attachments
attachment-30875-0.html (2.41 KB, text/html)
2021-12-22 11:30 UTC, tcanabrava
Details
attachment-1586-0.html (2.95 KB, text/html)
2021-12-22 12:04 UTC, tcanabrava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simon 2018-04-06 10:13:52 UTC
Hi,

I would like to have an option to enable/disable the mouse support on the emulated terminal by konsole.

The reason for this is, that some applications (like "vim") interfer with my normal use of the mouse for selecting and copy&paste.

Thnaks & Rregards
Simon
Comment 1 Ahmad Samir 2018-04-30 19:14:10 UTC
Could you expand on how vim interferes? steps to reproduce the issue would be great.
Comment 2 Simon 2018-06-11 07:04:28 UTC
Hi Ahmad,

Sorry for not reporting back for so long.

When you do
:set mouse=a
in vim it will enable mouse support.
This is the default in debian.

In this mode copy&paste via Konsole does not work properly any more.
Konsole will not recognize any selections made with the mouse and the "copy" menu entry in Konsole is greyed-out.

This "mouse support hijacking" even works through SSH.

I meanwhile found out that I can press the "shift" key to circumvent this in vim.
However I still think it would be good to be able to just disable any form of mouse features in Konsole.

Thanks & Regards
Simon
Comment 3 Tomas Pospisek 2021-12-22 11:26:36 UTC
I would also love to be able to disable *completely* mouse event forwarding from konsole into the terminal. If anyone knows if there's a work around (like using stty or something to disable mouse support) then I'd be very glad to hear.

Terminal apps being able to handle mouse events are driving me crazy. The problem is, that every terminal app feels like inventing its own mouse handling. Some terminal applications actually *do* interpret CTRL-click *or* Shift-click so what happens if you want to mark text in the terminal in order to copy it (be it with shift, ctrl or whatever) is a roll of dice. It's driving me nuts.

It'd be so much nicer if terminal apps would just stop messing with mouse input altogether or konsole would not forward mouse input *at all* to the terminal.

If somebody knew where mouse events get forwarded into the terminal (if the mechanism works at all like this), then I'd happily just comment that code out in konsole and recompile from source...
Comment 4 tcanabrava 2021-12-22 11:30:26 UTC
Created attachment 144783 [details]
attachment-30875-0.html

Configure profile, mouse, miscellaneous, uncheck “allow terminal
applications to handle mouse click”


Le mer. 22 déc. 2021 à 11:26, Tomas Pospisek <bugzilla_noreply@kde.org> a
écrit :

> https://bugs.kde.org/show_bug.cgi?id=392794
>
> Tomas Pospisek <tpo_deb@sourcepole.ch> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |tpo_deb@sourcepole.ch
>
> --- Comment #3 from Tomas Pospisek <tpo_deb@sourcepole.ch> ---
> I would also love to be able to disable *completely* mouse event forwarding
> from konsole into the terminal. If anyone knows if there's a work around
> (like
> using stty or something to disable mouse support) then I'd be very glad to
> hear.
>
> Terminal apps being able to handle mouse events are driving me crazy. The
> problem is, that every terminal app feels like inventing its own mouse
> handling. Some terminal applications actually *do* interpret CTRL-click
> *or*
> Shift-click so what happens if you want to mark text in the terminal in
> order
> to copy it (be it with shift, ctrl or whatever) is a roll of dice. It's
> driving
> me nuts.
>
> It'd be so much nicer if terminal apps would just stop messing with mouse
> input
> altogether or konsole would not forward mouse input *at all* to the
> terminal.
>
> If somebody knew where mouse events get forwarded into the terminal (if the
> mechanism works at all like this), then I'd happily just comment that code
> out
> in konsole and recompile from source...
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 5 Tomas Pospisek 2021-12-22 11:43:11 UTC
(In reply to tcanabrava from comment #4)
> 
> Configure profile, mouse, miscellaneous, uncheck “allow terminal
> applications to handle mouse click”
> 
> Le mer. 22 déc. 2021 à 11:26, Tomas Pospisek <bugzilla_noreply@kde.org> a
> écrit :
>
> > I would also love to be able to disable *completely* mouse event forwarding
> > from konsole into the terminal. If anyone knows if there's a work around
> > (like using stty or something to disable mouse support) then I'd be very glad to
> > hear.
> >
> > Terminal apps being able to handle mouse events are driving me crazy. The
> > problem is, that every terminal app feels like inventing its own mouse
> > handling. Some terminal applications actually *do* interpret CTRL-click
> > *or*  Shift-click so what happens if you want to mark text in the terminal in
> > order to copy it (be it with shift, ctrl or whatever) is a roll of dice. It's
> > driving me nuts.
> >
> > It'd be so much nicer if terminal apps would just stop messing with mouse
> > input altogether or konsole would not forward mouse input *at all* to the
> > terminal.
> >
> > If somebody knew where mouse events get forwarded into the terminal (if the
> > mechanism works at all like this), then I'd happily just comment that code
> > out in konsole and recompile from source...

Thanks a lot tcanabrava. However these options are not available in my konsole 20.12.3 from Debian proper on Debian bullseye. 

Do you know what version of konsole I need to have that option?

Thanks again,
*t
Comment 6 tcanabrava 2021-12-22 12:04:08 UTC
Created attachment 144785 [details]
attachment-1586-0.html

Being on debian you are out of luck, as they tend to take ages to update
software. Your version is - I believe - 4 releases old, toms of fixes and
improvements happened :)
I’d say “try to compile from master” if your distro doesn’t provides you
with latest.


Le mer. 22 déc. 2021 à 11:43, Tomas Pospisek <bugzilla_noreply@kde.org> a
écrit :

> https://bugs.kde.org/show_bug.cgi?id=392794
>
> --- Comment #5 from Tomas Pospisek <tpo_deb@sourcepole.ch> ---
> (In reply to tcanabrava from comment #4)
> >
> > Configure profile, mouse, miscellaneous, uncheck “allow terminal
> > applications to handle mouse click”
> >
> > Le mer. 22 déc. 2021 à 11:26, Tomas Pospisek <bugzilla_noreply@kde.org>
> a
> > écrit :
> >
> > > I would also love to be able to disable *completely* mouse event
> forwarding
> > > from konsole into the terminal. If anyone knows if there's a work
> around
> > > (like using stty or something to disable mouse support) then I'd be
> very glad to
> > > hear.
> > >
> > > Terminal apps being able to handle mouse events are driving me crazy.
> The
> > > problem is, that every terminal app feels like inventing its own mouse
> > > handling. Some terminal applications actually *do* interpret CTRL-click
> > > *or*  Shift-click so what happens if you want to mark text in the
> terminal in
> > > order to copy it (be it with shift, ctrl or whatever) is a roll of
> dice. It's
> > > driving me nuts.
> > >
> > > It'd be so much nicer if terminal apps would just stop messing with
> mouse
> > > input altogether or konsole would not forward mouse input *at all* to
> the
> > > terminal.
> > >
> > > If somebody knew where mouse events get forwarded into the terminal
> (if the
> > > mechanism works at all like this), then I'd happily just comment that
> code
> > > out in konsole and recompile from source...
>
> Thanks a lot tcanabrava. However these options are not available in my
> konsole
> 20.12.3 from Debian proper on Debian bullseye.
>
> Do you know what version of konsole I need to have that option?
>
> Thanks again,
> *t
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 7 Tomas Pospisek 2021-12-22 12:53:38 UTC
(In reply to tcanabrava from comment #6)

> Being on debian you are out of luck, as they tend to take ages to update
> software.

Speaking to a DD here: they (but here evidently the "other" "they"s) are not tending
to their Debian user's needs...)... >;-#

> Your version is - I believe - 4 releases old, toms of fixes and
> improvements happened :)

Any chance you know in which released version this particular feature landed?

> I’d say “try to compile from master” if your distro doesn’t provides you
> with latest.

I remember when I was a KDE developper a long, long time ago and I did just
that only for the compile to take two days on my laptop, then failing with a
compile error, me filing a ticket or asking on the mailing list, being told "ah,
that was fixed, please pull", rince, repeat and finaly after half a dozen compiles
and a few weeks later giving up because I couldn't even keep up with recompiles
never mind actually getting any dev work done. I'm guessing a lot of stuff has
changed since then but the narrative "hahaha, Debian is not even able to hahaha,
just recompile from master" doesn't seem to have advanced much. 
*t

> Le mer. 22 déc. 2021 à 11:43, Tomas Pospisek <bugzilla_noreply@kde.org> a
> écrit :
> 
> > https://bugs.kde.org/show_bug.cgi?id=392794
> >
> > --- Comment #5 from Tomas Pospisek <tpo_deb@sourcepole.ch> ---
> > (In reply to tcanabrava from comment #4)
> > >
> > > Configure profile, mouse, miscellaneous, uncheck “allow terminal
> > > applications to handle mouse click”
> > >
> > > Le mer. 22 déc. 2021 à 11:26, Tomas Pospisek <bugzilla_noreply@kde.org>
> > a
> > > écrit :
> > >
> > > > I would also love to be able to disable *completely* mouse event
> > forwarding
> > > > from konsole into the terminal. If anyone knows if there's a work
> > around
> > > > (like using stty or something to disable mouse support) then I'd be
> > very glad to
> > > > hear.
> > > >
> > > > Terminal apps being able to handle mouse events are driving me crazy.
> > The
> > > > problem is, that every terminal app feels like inventing its own mouse
> > > > handling. Some terminal applications actually *do* interpret CTRL-click
> > > > *or*  Shift-click so what happens if you want to mark text in the
> > terminal in
> > > > order to copy it (be it with shift, ctrl or whatever) is a roll of
> > dice. It's
> > > > driving me nuts.
> > > >
> > > > It'd be so much nicer if terminal apps would just stop messing with
> > mouse
> > > > input altogether or konsole would not forward mouse input *at all* to
> > the
> > > > terminal.
> > > >
> > > > If somebody knew where mouse events get forwarded into the terminal
> > (if the
> > > > mechanism works at all like this), then I'd happily just comment that
> > code
> > > > out in konsole and recompile from source...
> >
> > Thanks a lot tcanabrava. However these options are not available in my
> > konsole
> > 20.12.3 from Debian proper on Debian bullseye.
> >
> > Do you know what version of konsole I need to have that option?
> >
> > Thanks again,
> > *t
> >
> > --
> > You are receiving this mail because:
> > You are the assignee for the bug.
Comment 8 Eliphas 2021-12-22 13:04:33 UTC
Hi!

(In reply to tcanabrava from comment #6)
> Being on debian you are out of luck, as they tend to take ages to update
> software. Your version is - I believe - 4 releases old, toms of fixes and
> improvements happened :)
> I’d say “try to compile from master” if your distro doesn’t provides you
> with latest.

I have konsole 4:21.12.0+p20.04+tstable+git20211217.0029-0 and still do not find that option in profile. Do I need to enable some hidden feature or remove old config?

Using KDE neon Testing Edition (20.04).

Cheers,
-- 
Eliphas
Comment 9 Ahmad Samir 2021-12-22 13:21:27 UTC
It's in git master https://invent.kde.org/utilities/konsole/-/commit/1ee961e4e284ba044a3c23e4ead8a22fa2170538 (hasn't been in a released version yet).
Comment 10 Tomas Pospisek 2021-12-22 13:24:35 UTC
thanks a lot for the info Ahmad Samir!