After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 120276 - Wishlist: Support Rectangular Selection
Wishlist: Support Rectangular Selection
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.11.x
Other Linux
: Normal enhancement
: ---
Assigned To: Behdad Esfahbod
Nalin Dahyabhai
: 129631 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-08-19 19:10 UTC by David Richards
Modified: 2006-03-31 03:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Patch to implement rectangle selection in vte. (8.11 KB, patch)
2006-03-24 03:35 UTC, Pedro de Medeiros
committed Details | Review

Description David Richards 2003-08-19 19:10:14 UTC
We are requesting that a feature be added that is used heavily on our
thin clients.  We are looking at moving our users to GNOME/XD2 and one
feature that is missing in gnome-terminal/vte is the ability to do a
"rectangular selection".  In our current telnet client, you can shift click
into the text area and grab only sections of the screen and those are put
into the copy buffer and then can pasted into other applications.  This
works great for a situation where you have 3 columns of data, and only want
to paste the first 2 columns.
Comment 1 Nalin Dahyabhai 2003-08-19 19:25:22 UTC
Shift-click is already taken for use in selection, so if this were to
be implemented, it would have to be done some other way.  Not sure how
this fits into selection in general, though.
Comment 2 David Richards 2003-08-19 19:49:06 UTC
If that is the case, maybe control-click or alt-click then.  Our
current telnet client creates a cross-hair when you enable this kind
of selection and then as you move your mouse the selection area draws
a box in reverse video.

One reason for using this feature is that some software vendors use
control codes to access special characters that draw boxes around
certain sections of the screen.  This allows you to not copy and paste
those, and just crop out the text only.

Thanks for consideration.
Comment 3 Nalin Dahyabhai 2003-08-19 21:11:36 UTC
Ah, but Ctrl-Click is already used by gnome-terminal as a shortcut to
the default dingus click action (typically "Open URL").  Alt-Click is
used by most window managers to drag windows around.  I'm not sure
there are any modifiers left to work with here.
Comment 4 Kjartan Maraas 2005-02-14 23:13:35 UTC
Nalin, the dingus click is shift+ctrl+click so ctrl+click is not taken by that
action at least. 
Comment 5 Michele Baldessari 2005-06-26 17:18:00 UTC
*** Bug 129631 has been marked as a duplicate of this bug. ***
Comment 6 Pedro de Medeiros 2006-03-24 03:35:37 UTC
Created attachment 61883 [details] [review]
Patch to implement rectangle selection in vte.
Comment 7 Pedro de Medeiros 2006-03-24 03:36:23 UTC
This is a patch for this feature. When ctrl-click is pressed, selection changes to rectangle mode and back to default mode if it is released. Copying and pasting should work as expected too.

Please, help me test this!
Comment 8 Brent Smith (smitten) 2006-03-27 00:25:14 UTC
Tested here, seems to work great.  I just did a few copies and pastes into gedit and I didn't encounter any problems.  Applies against VTE head
Comment 9 Pedro de Medeiros 2006-03-27 02:44:00 UTC
I tested copy while scrolling and it seems ok there too. Any other ideas to test?
Comment 10 Behdad Esfahbod 2006-03-31 03:58:11 UTC
Very sweet.  Thanks!

2006-03-30  Behdad Esfahbod  <behdad@gnome.org>

        Bug 120276 – Wishlist: Support Rectangular Selection
        Patch from Pedro de Medeiros.

        * src/vte.c, src/vte-private.h: Implement block (rectangular)
        selection using ctrl+mouse.