bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bracketed paste ANSI sequence on non-ANSI terminals


From: G. Branden Robinson
Subject: Re: bracketed paste ANSI sequence on non-ANSI terminals
Date: Fri, 3 Nov 2023 10:28:39 -0500

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

[Prev in Thread] Current Thread [Next in Thread]