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

Bug#588785: ANN: xterm patch #267



On Mon, 22 Nov 2010, Timo Juhani Lindfors wrote:

Thomas Dickey <dickey@his.com> writes:
The problem is the "ignore".  I didn't modify the mouse-button
translations.  It would be nice to just have the selection stop
when copy-selection happens, but it didn't appear necessary.

thanks. Next I tried just

XTerm*VT100.Translations:    #override \n\
Shift Ctrl <KeyPress> v:insert-selection(CLIPBOARD)\n\
Shift Ctrl <KeyPress> c:copy-selection(CLIPBOARD)\n

and then

1) select text
2) hit ctrl-shift-c without moving mouse
3) move the mouse and click somewhere so that no text is selected anymore

first copied the text to clipboard (step 2) but then deleted the
clipboard contents in step 3. Any idea why?

Clicking the mouse is doing a select-start, which clears the existing
selection.  Likewise, a select-extend would update whatever targets
it's associated with.

Going down that thread, it's conceivable that xterm could be modified
to _not_ clear its selection until something like a select-end or copy-selection asked for the selection data. But that's hard to say
exactly, since xterm's generally associating the highlighting with the
actual selection.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net



Reply to: