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

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



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? ;-)



Reply to: