Re: X-term
From: Jeff Goswick (
)
Date: Wed Sep 13 2000 - 16:14:08 EDT
Seems that on HP systems, the echo command uses \c
to print the string without appending a new line.
Oh, the sequence works for me on xterm and dtterm,
and the M$windows emulator 'Teraterm'.
Regards,
Jeff
--
Jeff Goswick
mailto:
On Wed, 13 Sep 2000, Parker, James D wrote:
> Date: Wed, 13 Sep 2000 10:32:26 -0400
> From: "Parker, James D" <
>
> To: 'Jeff Goswick' <
>
> Subject: RE: X-term
>
> On my system you don't seem to need the \c. Eg., the following sets the
> title of a terminal window to stuff:
> echo "<esc>]2; stuff <bel>"
>
> Adding \c simply means that \c gets echoed at the command line.
>
> This works for both xterm and dtterm. Running Solaris 2.5.x.
>
> So, what is the \c for?
>
> Thanks
> Jim
> Gaithersburg 182/3N103
> Phone - (301) 240-6385 FAX - (301) 240-6073
> Beeper - (888) 691-4783
> E-mail -
>
>
> -----Original Message-----
> From: Jeff Goswick [mailto:
]
> Sent: Tuesday, September 12, 2000 1:41 PM
> To:
> Subject: Re: X-term
>
>
>
> 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
|