*** empty log message ***
authorroot <root>
Sat, 21 Jan 2006 08:07:38 +0000 (08:07 +0000)
committerroot <root>
Sat, 21 Jan 2006 08:07:38 +0000 (08:07 +0000)
Changes
src/perl/readline
src/rxvtperl.xs
src/urxvt.pm

diff --git a/Changes b/Changes
index e07baeb3fd19b303b26b2e4dcd12f4dee22e574e..03306d357f406e331a580a7257bb508af7e4e76e 100644 (file)
--- a/Changes
+++ b/Changes
@@ -11,20 +11,22 @@ TODO: read property sequence is broken with respect to utf-8 etc.
 TODO: http://www120.pair.com/mccarthy/nextstep/intro.htmld/Workspace.html is the correct nextstep look.
 TODO: rxvt -name urxvt-girly /// leave pixel droppings
 TODO: distributed clipboard example
+TODO: http://www.issociate.de/board/post/274416/HOWTO:_Mouse_editing_with_readline_in_xterm.html
+TODO: http://groups.google.com/group/comp.unix.shell/msg/e538d04a118174d3
 WISH: perl extension for background image loading and moving the origin.
 WISH: OnTheSpot editing, or maybe switch to miiiiiiif. or maybe use perl and an overlay...
 WISH: just for fun, do shade and tint with XRender.
 WISH: support tex fonts
 
 7.2
-       - now it is possible to insert the value of the CLIPBOARD selection
-         with shift - mouse button 2
-       - removed support for obsolete offix dnd protocol.
         - added "tabbed" extension that provides a crude tabbed terminal.
         - added "readline" extension that allows cursor positioning
           via mouse clicks.
+       - now it is possible to insert the value of the CLIPBOARD selection
+         with shift - mouse button 2
         - fixed the automove-background extension to ignore coordinates
           in non-synthetic events.
+       - removed support for obsolete offix dnd protocol.
 
 7.1  Thu Jan 19 20:25:34 CET 2006
         - setuid/setgid operation is now _encouraged_: security has been
index b11ada882acaebca5d1400970428459dcbf403da..b73aef3aa42666a29f90d460c6fe0953fb9715cb 100644 (file)
@@ -3,12 +3,15 @@
 sub on_button_press {
    my ($self, $event) = @_;
 
+   return
+      if $self->current_screen || $self->hidden_cursor;
+
    my ($row, $col) = $self->screen_cur;
    my $line = $self->line ($row);
    my $cur = $line->offset_of ($row, $col);
    my $ofs = $line->offset_of ($event->{row}, $event->{col});
 
-   if ($ofs >= 0 && $ofs < $line->l && !$self->current_screen) {
+   if ($ofs >= 0 && $ofs < $line->l) {
       my $diff = $ofs - $cur;
       my $move;
 
index af04e42afaa314067ad6d06f1c01263bcedadf2b..64ffdb82d9795a11f7f50c4e5963d9dc8042f739 100644 (file)
@@ -1120,13 +1120,15 @@ rxvt_term::ModLevel3Mask ()
            ModMetaMask    = 1
            ModNumLockMask = 2
            current_screen = 3
+           hidden_cursor  = 4
        CODE:
         switch (ix)
           {
-           case 0: RETVAL = THIS->ModLevel3Mask;  break;
-           case 1: RETVAL = THIS->ModMetaMask;    break;
-           case 2: RETVAL = THIS->ModNumLockMask; break;
-           case 3: RETVAL = THIS->current_screen; break;
+            case 0: RETVAL = THIS->ModLevel3Mask;  break;
+            case 1: RETVAL = THIS->ModMetaMask;    break;
+            case 2: RETVAL = THIS->ModNumLockMask; break;
+            case 3: RETVAL = THIS->current_screen; break;
+            case 4: RETVAL = THIS->hidden_cursor;  break;
           }
         OUTPUT:
         RETVAL
index 1552dc16e0cef2e75bfca9d705c2173862f5254a..500ab70cc29ed61916cd104c8870fa5479567861 100644 (file)
@@ -172,11 +172,20 @@ move the text cursor to this position. It does so by generating as many
 cursor-left or cursor-right keypresses as required (the this only works
 for programs that correctly support wide characters).
 
-It only works when clicking into the same line (possibly extended over
-multiple rows) as the text cursor and on the primary screen, to reduce the
-risk of misinterpreting. The normal selection isn't disabled, so quick
-successive clicks might interfere with selection creation in harmless
-ways.
+To avoid too many false positives, this is only done when:
+
+=over 4
+
+=item - the mouse is on the same (multi-row-) line as the text cursor.
+
+=item - the primary screen is currently being displayed.
+
+=item - the text cursor is visible.
+
+=back
+
+The normal selection mechanism isn't disabled, so quick successive clicks
+might interfere with selection creation in harmless ways.
 
 =item tabbed
 
@@ -1378,6 +1387,10 @@ AltGr), the meta key (often Alt) and the num lock key, if applicable.
 
 Returns the currently displayed screen (0 primary, 1 secondary).
 
+=item $cursor_is_hidden = $term->hidden_cursor
+
+Returns wether the cursor is currently hidden or not.
+
 =item $view_start = $term->view_start ([$newvalue])
 
 Returns the row number of the topmost displayed line. Maximum value is