[Top][All Lists]

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

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

From: Chris F.A. Johnson
Subject: Re: [Help-bash] read -ep and ANSI colour sequences
Date: Wed, 20 Feb 2013 13:00:16 -0500 (EST)
User-agent: Alpine 2.00 (LMD 1167 2008-08-23)

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, <>
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

reply via email to

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