On 2018-12-05 13:33:41 +0100, Vincent Lefevre wrote: > Note also that for a bracketed paste, > > > https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Bracketed-Paste-Mode > > says: > > When bracketed paste mode is set, the program will receive: > ESC [ 2 0 0 ~ , > followed by the pasted text, followed by > ESC [ 2 0 1 ~ . > > but here, only "\33[201~" is present in the strace output: > > cventin:~> grep '\\33\[20' str.out > 26473 13:22:16.545126 write(4, "\33[201~", 6 <unfinished ...> > > Thus is cannot correspond to a bracketed paste.
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. In any case, exec-formatted has nothing to do with paste (brackected or not). So, I don't understand the contents of doSelectionFormat. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)