Open Text Corporation Press Room | Careers | Investors  
Enterprise Content Management
News | Company | Open Text | Hummingbird Connectivity  
Home > Exceedusers > Sep2000 >  Re: X-term Print View   Contact Me   
Site Tools
My Notes
My Menu Add this page to My Menu
Enterprise Content Management

 

From: Jeff Goswick ( )
Date: Tue Sep 12 2000 - 13:40:35 EDT


I'm guessing from your description that you have
your 'cd' command aliased to something that modifies
the title of your xterm screen. If your cd alias
echos escape sequences (non-printable characters)
then it probably does that to change the xterm title.

To add your hostname and your current directory to your
xterm title, you could add the hostname to your current
cd alias, or define a new one.

csh example:

  alias cd '/bin/cd \!:1; echo "<esc>]2; `/bin/hostname` $cwd <bel>\c"'

would put your current host and your current working directory on your
xterm title. The <esc>]2 and <bel>\c are escape sequences that tells
xterm to use the text in between for the window title.

<esc> should be replaced by the nonprintable escape character
with ascii decimal code 26 and may be typed as <control>[

The <bel> is ascii decimal code 7, and can be typed as <control>G

Getting this alias in to your ~/.cshrc may be tricky, since your editor
may try to interpret your keystrokes for the <esc> and <bel> as commands.
I use Nedit, and can enter these with the keystrokes I mentioned while
pressing the 'alt' key; or by using the menu item "Edit -> Enter Cntrl
Code" then enter the ascii code into a dialog box.

I've attached a csh script that will modify the xterm title
and the icon label, called 'xlabel'. If you run it with the
command line:

  xlabel "Icon" " Window" " more Window"

Then the xterm icon name is changed to "Icon" and the window
title will be "Icon Window more Window".

Note: I'm using exceed 6.2, and not running hwm, and when I cd, my title
doesn't change until I iconify then reopen the window.

Hope this helps.

Jeff

--
Jeff Goswick
mailto:




On Mon, 11 Sep 2000, Swati Sarkar wrote:

> Date: Mon, 11 Sep 2000 16:44:54 -0700 > From: Swati Sarkar < > > Reply-To: "Title: ExceedUsers" < > > To: > Subject: X-term > > Hi, > > I am using Xterm , in command line I have added the following line : > /usr/openwin/bin/xterm -vb -ls -bg black -fg green -fn 7x14 > -geometry 80x50 -sb -sl 600 -T dublin -display 209.185.117.207:0.0 & > | | > [host-name][IP address of my PC] > but in the session when I am changing the directory,top of screen heading > changing , doesn't shows the host name, I want to display it constantly so > that when I will minimize the session , in future I would be able to > recognize the session for that particular host. > Anybody can solve my problem ? > Thanx > Swati Sarkar >




This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 00:00:27 EDT