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

Bug#588785: #588785 xterm: consider supporting freedesktop.org style clipboard behavior



On Thu, 2 Sep 2010, Timo Juhani Lindfors wrote:

Thomas Dickey <dickey@his.com> writes:
I think it's likely that the unprocessed KeyRelease events are confusing
the X library.  Adding ignore's for those seems to improve it:

*VT100*translations:    #override \n\
 Shift Ctrl <KeyPress> v:insert-selection(CLIPBOARD)\n\
 Shift Ctrl <KeyRelease> v:ignore() \n\
 Shift<Btn1Down>:select-start()\n\
 Shift<Btn1Motion>:select-extend()\n\
 Shift Ctrl <KeyPress> c:select-end(CLIPBOARD)\n\
 Shift Ctrl <KeyRelease> c:ignore() \n\
 <BtnUp>:ignore() \n

I see two different problematic scenarios:

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

=> terminal does not respond anymore

1) select text
2) hit ctrl-shift-c without moving mouse
3) hit backspace until you start removing selected characters

=> contents of clipboard is cleared

However, the original wish

1) select text
2) hit ctrl-shift-c without moving mouse
3) hit ctrl-shift-v without moving mouse

seems to work. Is it possible to extend this wishlist bug to also
cover the first two cases? ;-)

yes (I'd like to get this to work properly - at least to fix xterm if there's a fix or identify a problem in the X libraries, etc).

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



Reply to: