Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: javet@di.epfl.ch (Christian Javet)
Subject: Re: Machine Name in The Title bar???
Date: 15 Oct 1994 10:48:21 GMT	[thread overview]
Message-ID: <37oc1l$3dq@disunms.epfl.ch> (raw)
In-Reply-To: 37bpie$8sd@nyx10.cs.du.edu

In article <37bpie$8sd@nyx10.cs.du.edu>,
Mike Hatz <mhatz@nyx10.cs.du.edu> wrote:
%% 
%% Is there a script someone could send along or give a hint for a hack that
%% displays the machine name you are logged into in the window title?
%% 
%% The box I am on is a DEC3000 running osf1. 
%% 
%% Thanks!
%% 
%% Mike

 Hello !!

 If you are using tcsh, change the prompt of you xterm. Add the following
 lines in your .cshrc file:

   if ( $?term ) then
     if  ( "$term" == 'xterm' ) then 
        set prompt = '%{\033]0;%m - %~\007%}%B %~ >%b '  
     else
        set prompt = '%m - %~ %# '
     endif
   else
     set prompt = '%m - %~ %# '
   endif
 
 (Note: you could add a test for testing the shell (this doesn't work under
        csh!))

 If you put this on all the .cshrc you have (I mean all machines) it will be
 nice to see the hostname and path in all your xterm (even when iconified) and
 the titlebar change when you cd in another directory. 

 Try it ! 

                     Chris.
###################################################################
# Christian Javet              # (e-mail)     javet@di.epfl.ch    #
# Chemin des Vignerons 9       # -------------------------------- #
# 1807 - BLONAY                #        WWW home page:            #
# (021) 943 19 66              #   http://diwww.epfl.ch/~javet/   #
###################################################################


      parent reply	other threads:[~1994-10-15 10:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-10 16:19 Machine Name in The Title bar??? Mike Hatz
1994-10-10 19:20 ` Ajay Shekhar
1994-10-11 13:50   ` FUHRMANN
1994-10-14 18:48     ` Eric Johnson
1994-10-15 17:16       ` Torbj|rn Lindgren
1994-10-13 14:34 ` John William Chambless
1994-10-13 15:41   ` John William Chambless
1994-10-13 19:27     ` oberman
1994-10-14  6:52       ` Arto V. Viitanen
1994-10-15 10:48 ` Christian Javet [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox