On 11/6/23 12:29 PM, Hans Lub wrote:
ncurses appears to have introduced capabilities for bracketed paste.
 From ncurses NEWS:

20221224
    [...]
      + add/use bracketed+paste to help identify terminals supporting this
        xterm feature (prompted by discussion with Bram Moolenaar) -TD

They are: BD and BE (Disable/Enable bracketed paste) and PS, PE
(Start/End pasted text):

BD=\E[?2004l, BE=\E[?2004h, PE=\E[201~, PS=\E[200~,

This is reasonable, and these are the sequences everyone uses. But it
doesn't help the current situation.

Vim recognises  them (see
https://github.com/vim/vim/commit/7b8db111e819bcb07cff6fc451584b0e3e0a49fd).
I think it would be a
good idea for readline to use them as well.

I'm ok with a future version of readline turning on bracketed paste if
it's off and these capabilities exist, but not vice versa. It will be a
long time before all the terminal descriptions have incorporated them.


--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [email protected]    http://tiswww.cwru.edu/~chet/


Reply via email to