home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.ultrix
- Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!dsfys1.fi.uib.no!iversen
- From: iversen@dsfys1.fi.uib.no (Per Steinar Iversen)
- Subject: Re: Q: escape sequences to modify dxterm title?
- Message-ID: <1992Nov16.120730.15077@alf.uib.no>
- Keywords: xterm dxterm escape codes
- Lines: 53
- Sender: iversen@vsfys1.fi.uib.no (Per Steinar Iversen)
- Reply-To: iversen@vsfys1.fi.uib.no
- Organization: Department of Physics, University of Bergen, Norway
- References: <1992Nov16.105312.19054@Informatik.TU-Muenchen.DE>
- Date: Mon, 16 Nov 92 12:07:30 GMT
- Lines: 53
-
-
- In article <1992Nov16.105312.19054@Informatik.TU-Muenchen.DE>, kirschnt@Informatik.TU-Muenchen.DE (Torsten R. Kirschner) writes:
-
- >Dear fellow netters,
- >
- >can anybody tell me whether there are xterm-like escape sequences to
- >modify a dxterm's titlebar string dynamically??
- >
- >I have a neat line in my .kshrc that works with xterms (I have replaced
- >the control chars to make it through the news), which I would like to
- >work with dxterms, too:
- >
- >export SHWIN_NAME=$HOST
- >PS1='ESCAPE]2;$SHWIN_NAME ${PWD}CONTROL-GESACPE]1;$SHWIN_NAMECONTROL-G
- >> '
- >
- >Replace ESCAPE with the ^[-char, and CONTROL-G with the ^G-char to check
- >it out. The line feed is intentional.
- >
- >Any help to get this to work with dxterm would be gratefully appreciated.
- >Thanks in advance...
- >
- >Torsten
- >--
- >Torsten R. Kirschner DOMAIN: torki@mpipf-muenchen.mpg.dbp.de
- >Christoph-Probst-Str. 8/818 FAX: +49 89 342473
- >8000 Muenchen 40 HOME: +49 89 3234102
- >
-
- I picked this up from the net last year sometime, I keep it in my .cshrc for
- use by tcsh:
-
- if ($?prompt) then
- if ($?tcsh) then
- if ($term == xterm || $term == xterms || $term == xterml) then
- set prompt="%{\e]2\;%m:%/^g\e]1\;%m^g\r%}%B`hostname`>%b "
- endif
- if ($term == vt300 && $?DISPLAY ) then
- set prompt="%{\e]21\;%m:%/\e\\\e]2L;%m\e\\%}%B`hostname`>%b "
- endif
- endif
- endif
-
- This works well enough most of the time, though I am sure it could be improved.
-
- +------------------------------------------------------------------------------+
- ! Per Steinar Iversen ! Internet: iversen@vsfys1.fi.uib.no !
- ! Fysisk Institutt ! BITnet: iversen@cernvm.bitnet !
- ! Universitetet i Bergen ! HEPnet: VSFYS::IVERSEN (VSFYS=21.341=21845) !
- ! Allegaten 55 ! Phone: +47 5212770 !
- ! N-5007 Bergen ! Fax: +47 5318334 !
- ! NORWAY ! !
- +------------------------------------------------------------------------------+
-