Bug 188513 - please support xterm mouse "Button Motion Events" with "\033[?1002h" control sequence
Summary: please support xterm mouse "Button Motion Events" with "\033[?1002h" control ...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-31 00:56 UTC by Jason Vas Dias
Modified: 2009-05-15 22:55 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Vas Dias 2009-03-31 00:56:06 UTC
Version:            (using KDE 3.5.9)
OS:                Linux
Installed from:    Compiled From Sources

You already support enabling sending mouse motion events to terminal
/ curses applications WHEN a mouse button is pressed or released by
the application sending the "\033[?1000h" (enable) / "\033[?1000l" (disable) 
termcap escape sequences .
Why not also support the "\033[?1002h" "Button Motion Event" sequence,
to enable reporting mouse cell movement events WHILE a mouse button is
held down ? It opens up the ability for curses applications to implement
mouse drag. And why not consider supporting "\033[?1003h" button motion
highlight mode ?
Modern gnome-terminal and of course xterm support both.
If you haven't a clue what I'm talking about, please see :
http://invisible-island.net/xterm/ctlseqs.pdf.gz .
If this is already in 4.[12], sorry! But I couldn't find
any reference to 100[0-3]h in any bug request.
If no-one wants to do this, and it is not done,
I'll try to find time to develop a patch to implement.
Thanks for the great work, 
Jason.
Comment 1 Robert Knight 2009-03-31 10:52:24 UTC
> Why not also support the "\033[?1002h" "Button Motion Event" sequence,
> to enable reporting mouse cell movement events WHILE a mouse button is
> held down ?

In KDE 4, mouse commands 1000 and 1002 are supported.  There is partial support for 1003 and no support for 1001.

In other words, mouse dragging is supported in KDE 4.
Comment 2 Jason Vas Dias 2009-05-15 22:55:52 UTC
Thanks ! This now works in KDE 4.2 konsole .