[Gllug] Coloured bash prompt

Tethys tet at createservices.com
Thu Apr 22 16:28:31 UTC 2004


Pete Ryland writes:

>So, perhaps it's better to use setaf instead.  Note, however, that this uses
>BGR order as per ANSI-sequence colours.

Potentially true, but AIX[1] accepts both setf and setaf, and ignores
them both:

	askanarsp01:~% uname -a
	AIX askanarsp01 3 4 0045F3CA4C00
	askanarsp01:~% tput setf 3 | wc
		   0       0       0
	askanarsp01:~% tput setaf 3 | wc
		   0       0       0

Tet

[1] Solaris behaves the same, but it works fine on Tru64. I had initially
    thought it would be all SVR4 derived terminfos, but I guess DigiPaquard
    have fixed theirs.
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list