[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, <http://cfajohnson.com/>
Author:
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
- Re: [Help-bash] read -ep and ANSI colour sequences, (continued)
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris Down, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris F.A. Johnson, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris Down, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Pierre Gaston, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris Down, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Pierre Gaston, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris Down, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, muji, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Greg Wooledge, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, muji, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences,
Chris F.A. Johnson <=
- Re: [Help-bash] read -ep and ANSI colour sequences, muji, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Matthew Cengia, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chris F.A. Johnson, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chet Ramey, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Chet Ramey, 2013/02/20
- Re: [Help-bash] read -ep and ANSI colour sequences, Pierre Gaston, 2013/02/20
Re: [Help-bash] read -ep and ANSI colour sequences, Chet Ramey, 2013/02/20
Re: [Help-bash] read -ep and ANSI colour sequences, John Kearney, 2013/02/20