[ale] $PS1 stuff

Joseph Rattz Jr joerattz at yahoo.com
Mon Apr 12 10:34:29 EDT 1999


Concerning the octal conversion:

If you go to my web site:

http://www.mindspring.com/~joerattz/

Click on the Conversions link at the bottom, then
select numerical bases and you can convert dec/hex to
octal, or any other base you want.


--- "David S. Jackson" <dsj at dsj.net> wrote:
> Hi,
> 
> I was trying to customize my $PS1 variable a little
> bit with some ANSI color
> escapes, and I find that I can do it with bash 2.0.x
> but can't quite do it
> with bash 1.4.7.  At least not the same way.  Two
> questions:
> 
> first:  PS1="\[\e[1;31m\e \e[47m\] \d \@ BASH \V in
> \w \[\e[1;33m \e[40m \]
> \n[\u@\h \W]\$ "  seems to work fine with BASH 2.0,
> but not with 1.4.7.  I
> tried the ^[ escapes, and that didn't seem to work
> either.  I've tried
> TERM=xterm, TERM=xterm-color.  No go either way. 
> Any ideas for getting
> something like this to work with Bash 1.4.X?
> 
> second:  I'd like to add nifty ASCII characters to
> the PS1 line, but I have
> to enter their octal values as \nnn where "nnn" =
> the octal value of the
> ASCII character in question.  I found an old table
> with decimal and hex
> equivalents, but how do I convert them to octal for
> the PS1 variable?
> 
> TIA!
> 
> --
> David S. Jackson                          
> http://www.dsj.net
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> No electrons have been harmed or mistreated in
> bringing this 
> message to you.
> 
> 

===
Please don't add the e-mail address of this message to 
any e-mail address books.  Please use my normal e-mail
address (joerattz at mindspring.com) for any correspondence
other than the reply of a message I send you.  This is
because the address that is originating this message is
a temporary one.  Thank you.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com






More information about the Ale mailing list