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: John Tsiombikas
Subject: Re: bracketed paste ANSI sequence on non-ANSI terminals
Date: Sat, 4 Nov 2023 10:35:20 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Nov 03, 2023 at 10:51:44AM -0400, Chet Ramey wrote:
> On 11/2/23 2:18 PM, John Tsiombikas 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.

Sure, but an ANSI-compatible terminal would just ignore the bracketed
paste enable sequence anyway, as my VT420 does, so that's not an issue.

Detecting if a terminal is not ANSI-compatible and refraining from
transmitting any, such as the bracketed paste in question, could be done
at the very least by comparing termcap escape sequences for various
things, if there's no better way I'm not aware of.

-- 
John Tsiombikas
http://nuclear.mutantstargoat.com/



reply via email to

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