[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bracketed paste ANSI sequence on non-ANSI terminals
From: |
Hans Lub |
Subject: |
Re: bracketed paste ANSI sequence on non-ANSI terminals |
Date: |
Mon, 6 Nov 2023 18:29:23 +0100 |
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~,
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.
regards
Hans
--
Hans Lub +31 (0)6 14818149 PGP key
Dolomieten 74, NL 3524 VH Utrecht hanslub42@gmail.com