bug-bash
[Top][All Lists]
Advanced

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

Re: want three-color text


From: Eric Backus
Subject: Re: want three-color text
Date: 05 Jul 2001 03:29:15 -0700
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

gildea@stop.mail-abuse.org (Stephen Gildea) writes:

> I would like my shell windows to display text in three colors: one for
> the Bash prompt, one for what I type, and one for output.
> 
> I can get the prompt a different color by using \[, \], and \e in the
> prompt ($PS1).  But I don't know of a hook that gets run after my
> command line is accepted and before the command is executed.  So I
> can't get my typing and the resulting output to be separate colors.
> 
> I have Bash 2.05.
> 
>  < Stephen

Perhaps rebind the enter key to output an escape sequence to the
terminal?  That fails for multi-line input, but would probably work
well otherwise.

-- 
                        Eric Backus <eric_backus@agilent.com>
                        http://labejb.lsid.hp.com/
                        (425) 335-2495



reply via email to

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