[XFree86] gnome-terminal text selection enhancement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Using the mouse, I found reverse text selection (left motion) a problem - what I consider "correct" is to start a forward selection in the right half of the char cell, and a reverse selection in the left half of the char cell. This is how mozilla and gedit work, and I think irix terminal too.

Tested on multi-gnome-terminal-1.4.1 and appears to carry forward to zvtterm.c 1.161 in CVS.

in zvtterm.c,
zvt_term_button_press,
zvt_term_button_release,
zvt_term_motion_notify - add term->charwidth/2 in the numerator where converting x pixel position to x character position - this shift selection to right by 1/2 char width


x = ( x - ( widget->style->klass->xthickness + PADDING ) + term->charwidth/2 ) / term->charwidth;

then, get rid of the call to vt_fix_selection in zvt_term_motion_notify
because it screws up selection and it seems to be unnecessary during motion




_______________________________________________ XFree86 mailing list XFree86@xxxxxxxxxxx http://XFree86.Org/mailman/listinfo/xfree86

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux