On Mon, 19 Mar 2001 at 2:23pm (-0000), [EMAIL PROTECTED] wrote:

> Is it possible to generate ANSI sequences inside pdksh's PS1 prompt? A la
> bash?
>
> I can do things like
>
> print "\027\033[1;32m hello \027\033[0m"
>
> but I can't get PS1 to interpret properly - err, don't worry about string
> length, I'll cover that one step at a time!
>

Using your example... how about doing...

        PS1=`print "\027\033[1;32m hello \027\033[0m"`

... and getting literal escapes in there.

M.

-- 
WebCentral Pty Ltd           Australia's #1 Internet Web Hosting Company
Level 1, 96 Lytton Road.           Network Operations - Systems Engineer
PO Box 4169, East Brisbane.                       phone: +61 7 3249 2557
Queensland, Australia.                            pgp key id: 0x900E515F



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to