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: muji
Subject: Re: [Help-bash] read -ep and ANSI colour sequences
Date: Wed, 20 Feb 2013 19:36:59 +0100

I just wanted to say thanks for all the help, it's all very
educational to me, and especially to Chet for providing a solution
that works for what I am trying to achieve. Thank you.

2013/2/20 Chris F.A. Johnson <address@hidden>:
> 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.
>
>
> --
>    Chris F.A. Johnson, <http://cfajohnson.com/>
>    Author:
>    Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
>    Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)



-- 
mischa (aka muji).



reply via email to

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