On Wed, Dec 05, 2018 at 02:44:43PM +0100, Vincent Lefevre wrote: > On 2018-12-05 14:12:32 +0100, Vincent Lefevre wrote: > > I suspect a bug in doSelectionFormat() in button.c that makes xterm > > think that there was a bracketed paste, whose consequence is to > > generate the "ESC [ 2 0 1 ~ .". > > > > If I remove > > > > #if OPT_READLINE > > mydata->paste_brackets = screen->paste_brackets; > > SCREEN_FLAG_unset(screen, paste_brackets); > > #endif > > > > then I no longer get the "\33[201~". There's another issue, but > > that's a start. > > Replacing > > mydata->paste_brackets = screen->paste_brackets; no - it's more complicated than that. The problem is that when xterm's handling selectToClipboard, the X libraries delay the call to SelectionReceived, and in working on #758633, I didn't notice this particular scenario. (I'm debugging a solution, will probably put out #338 when this is resolved) -- Thomas E. Dickey <dickey@invisible-island.net> https://invisible-island.net ftp://ftp.invisible-island.net
Attachment:
signature.asc
Description: Digital signature