At 2023-11-03T10:51:44-0400, Chet Ramey wrote:
> There's no portable way to determine whether a particular terminal
> supports bracketed paste. Readline does suppress it for dumb
> terminals, but the vt52 and adm3a are just smart enough to pass its
> tests.

That's a pretty low bar--those terminals predate ECMA-48![1]

Bracketed paste mode still has a showroom shine by comparison.

Some study of the terminfo database might enable a test with greater
specificity.  I've been knocking about in ncurses lately; I'll send a
patch if I spot anything promising.

Regards,
Branden

[1] DEC VT52, 1974
    Lear-Sigler ADM-3a, 1976
    ECMA-48 (1st edition), 1976

    I'm assuming LSI had the design of the ADM-3a locked down before
    ECMA-48 was finalized.

    Also, ECMA-48 came first; ANSI X3.64 followed.  It's more correct to
    say "ECMA-48 escape sequences".

Attachment: signature.asc
Description: PGP signature

Reply via email to