How to change the color of Unix prompt?

How to change the color of Unix prompt?

Post by Zhenghao Y » Sun, 15 Jun 1997 04:00:00



Hello!

SGI worksation has the feature to change the prompt color. Can Sun
workstation do that? Or it's a generic mechanism, how?

Any ideas?

- Yeh

 
 
 

How to change the color of Unix prompt?

Post by Francois Deryc » Thu, 19 Jun 1997 04:00:00



> Hello!

> SGI worksation has the feature to change the prompt color. Can Sun
> workstation do that? Or it's a generic mechanism, how?

> Any ideas?

> - Yeh

Using tcsh, you can do something like

        set prompt = "%{\033[34m%}%B%n is on %m:%/%#%b "

to get a nice blue prompt.

For other codes, have a look at dtterm(5).

Slad.
--

        (o o)                  http://www.tele.ucl.ac.be/PEOPLE/fd.html
-----oOO-(_)-OOo-------------------------------------------------------
Ir. Fran?ois Deryck - Research Assistant       Phone : +32 10 47 80 71
UCL - Universit Catholique de Louvain                 +32 10 47 23 00
Communications and Remote Sensing Laboratory    Fax   : +32 10 47 20 89
-----------------------------------------------------------------------

 
 
 

How to change the color of Unix prompt?

Post by Francois Deryc » Thu, 19 Jun 1997 04:00:00




> > Hello!

> > SGI worksation has the feature to change the prompt color. Can Sun
> > workstation do that? Or it's a generic mechanism, how?

> > Any ideas?

> > - Yeh

> Using tcsh, you can do something like

>         set prompt = "%{\033[34m%}%B%n is on %m:%/%#%b "

> to get a nice blue prompt.

> For other codes, have a look at dtterm(5).

I must add that it works for 'dtterm' and 'rxvt', but not for 'xterm'.

Slad.
--

        (o o)                  http://www.tele.ucl.ac.be/PEOPLE/fd.html
-----oOO-(_)-OOo-------------------------------------------------------
Ir. Fran?ois Deryck - Research Assistant       Phone : +32 10 47 80 71
UCL - Universit Catholique de Louvain                 +32 10 47 23 00
Communications and Remote Sensing Laboratory    Fax   : +32 10 47 20 89
-----------------------------------------------------------------------