This is good, Tony. Thank-you.
(I have applied it in two Solaris domains I spend
a lot of time working in. Linux is at home and I'm
not there now. Later.)

Now, how do I change the size of the titlebar and the size
of the font in the titlebar so it is big enough to see?

And where in the standard documentation stuff is the list
of ANSI escape sequences so I can tune your colors for 
better readability by my aging eyes on these monitors?

(I have my xterms .Xdefault-ed for "black" on "white" but
the black is a washed out looking gray compared to what
you gave me.)

I'll trim the mailing lists to just the one I read. You
can add another if you think it is appropriate.

And, again, accept my heartfelt (well, eyefelt) appreciation
for this item,
dan       [EMAIL PROTECTED]
http://www.NatReformAssn.org/ - Explicitly Christian Politics

> On Wed Jun 28 2000 at 11:50, Antony Stace wrote to several of the
> vger linux mailing lists:
> 
> > Is there any way that I can display the current time in an xterm title
> > bar?
> 
> Easy, almost trivial.  You can do that and MUCH more besides.
> 
> case "$TERM" in
>   *xterm* )
>       PS1='\[\033]0;'
>       PS1="$PS1"'\u@\h-\w-${COLUMNS}x${LINES}-'
>       PS1="$PS1"'\t'
>       PS1="$PS1"'\007\]'
>     ;;
>   *) PS1='' ;;
> esac
> PS1="$PS1"'\[\033[1;32;44;37m\]['
> PS1="$PS1"'\[\033[33m\]\u'
> PS1="$PS1"'\[\033[37m\]@'
> PS1="$PS1"'\[\033[33m\]\h'
> PS1="$PS1"'\[\033[37m\]:'
> PS1="$PS1"'\[\033[33m\]\W'
> PS1="$PS1"'\[\033[37m\]]'
> PS1="$PS1"'\[\033[37m\]$'
> PS1="$PS1"'\[\033[0;1;33m\] '
> export PS1
> 
> You might not like colours, but I do :)  Very handy if you have
> terms open to lots of different computers.
> 
> Tweak that to your heart's content.  Beware of how this works...  it
> is well documented in the bash(1) man page, but there is a real
> trick to getting the extra colour codes in there properly "escaped"
> (with \[ and \]) so that it doesn't give any hassles with long
> command lines.
> 
> Cheers
> Tony
>  -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
>   Tony Nugent <[EMAIL PROTECTED]>    Systems Administrator, RHCE
>   GrowZone OnLine       (a project of) GrowZone Development Network
>   POBox 475 Toowoomba Oueensland Australia 4350    Ph: 07 4637 8322
>  -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-

Reply via email to