help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] read -ep and ANSI colour sequences


From: Matthew Cengia
Subject: Re: [Help-bash] read -ep and ANSI colour sequences
Date: Thu, 21 Feb 2013 10:24:59 +1100
User-agent: Mutt/1.5.20 (2009-06-14)

On 2013-02-20 13:00, Chris F.A. Johnson wrote:
> On Wed, 20 Feb 2013, Greg Wooledge wrote:
> ...
> >And whatever you do, STOP hard-coding terminal-specific escape sequences.
> >This will cease working when you run it on a terminal that uses different
> >escape sequences.
> 
>    I agree in principle, but for all practical purposes, there is one
>    standard terminal nowadays, ISO 6429.
> 
> >This is why we have termcap/terminfo libraries and a $TERM variable.
> 
>    Which cannot be used reliably in the shell.

I'm happy to be corrected, but isn't this exactly what 'tput' is for?

-- 
Regards,
Matthew Cengia

Attachment: signature.asc
Description: Digital signature


reply via email to

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