It is currently Tue, 07 Dec 2021 01:58:17 GMT



 
Author Message
 tcsh and colored xterm-prompt?

Hi,
i'm using tcsh on solaris. does anyone know how to get a colored
xterm-prompt? this would be fun.
thanx, gunnar
--

--------------------------------------------------------------
Gunnar Hildebrandt                  email: hildebra...@dkrz.de
Max-Planck-Institut f. Meteorologie  tel. : +49-40 / 41173-403
Bundesstr. 55                        fax  : +49-40 / 41173-298
D-20146 Hamburg
Germany
--------------------------------------------------------------



 Mon, 13 Mar 2000 03:00:00 GMT   
 tcsh and colored xterm-prompt?

 [courtesy cc of this posting sent to cited author via email]

In article <342A3FA8.2781E...@dkrz.de>,
Gunnar Hildebrandt  <hildebra...@dkrz.de> wrote:

You can play with the %{...%} construct:

    if ($term == xterm || $term == xterm-color) then
        set prompt="%{\033]2;%n@%M:%/ - %l\007\033]1;%l@%m\007%}%h [%T] %B%n%b@%m:%B%.2%#%b "
    else
        set prompt="%h [%T] %B%n%b@%m:%B%.2%#%b "
    endif

Just use ANSI color sequences.
--
Ollivier ROBERT  -=- FreeBSD: There are no limits -=-  robe...@freebsd.org
Usenet C{*filter*}Historique



 Thu, 16 Mar 2000 03:00:00 GMT   
 
   [ 2 post ] 

Similar Threads

1. Using tcsh prompt string in xterm title

2. color prompt in tcsh

3. Colored prompt in tcsh

4. Colored tcsh prompt messes up history

5. Color in tcsh prompt

6. tcsh prompt with ANSI colors

7. cshrc & color prompt line in tcsh

8. Bold colors in my prompt in tcsh

9. xterm or color-xterm?

10. xterm instead of xterm-color in RH4.0 / MetroX


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software