From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079038515875.tru64-unix-managers.marc@archive.invalid> From: Tom Linden Date: Tue, 23 Mar 1999 17:42:35 +0000 To: tru64-unix-managers Subject: SUMMARY: Change name dtterm X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079038515875 Thanks to all that responded. As you can see there are many ways to skin the cat, flay the feline, etc. For some reason /usr/dt/bin and /usr/dt/share/man weren't in my PATH and MANPATH, resp. Here are the suggestions: >From Robert.Otterson@digital.com Tue Mar 23 06:53:43 1999 Use "-name" to do ICON and Banner name dtterm -name SYSTEMNAME & >From alan@esu.edu Tue Mar 23 07:06:28 1999 I use xterm -name ALAN -n ALAN -name is the name of the window's title -n is the iconized title From: Achim Bohnet I've appended the little script dttermtitle we use to change the window title and icon name. It's encoded because it contains ESC and Crtl-G characters. IyEvdXNyL2Jpbi9rc2gKI3NldCAteAoKaWYgKCggJCMgIT0gMSApKSAmJiAoKCAkIyAhPSAy ICkpOyB0aGVuCglwcmludCAiVXNhZ2U6ICR7MCMjKi99ICB3aW5kb3dfdGl0bGUgIFtpY29u X3RpdGxlXSIgMT4mMgoJZXhpdCAxCmZpCgp3aW5kb3d0aXRsZT0iJDEiOyBzaGlmdDsKCmlm ICgoICQjID09IDEgKSk7IHRoZW4KCWljb250aXRsZT0iJDEiCmVsc2UKCWljb250aXRsZT0i JHdpbmRvd3RpdGxlIgpmaQoKI3ByaW50ICJ3dD18JHdpbmRvd3RpdGxlfCIKI3ByaW50ICJp dD18JGljb250aXRsZXwiCnByaW50IC1uICIbXTI7JHt3aW5kb3d0aXRsZX0HG10xOyR7aWNv bnRpdGxlfQciCg== >From amy@aloha.nascom.nasa.gov Tue Mar 23 07:16:16 1999 /usr/dt/bin/dtterm -name othername If you want to add this to your applications on your task bar you're going to need to add a "type" in your .dt subdirectory. I can give you an example of you I did this for one of our machines. It's not incredibly straightforward. Like it says, I created it through the CreateAction tool. ###################################################################### # # Common Desktop Environment (CDE) # # Action and DataType Definition File # # Generated by the CreateAction tool # # $Revision: 2.1.2.3 $ # # $KEY: 3745 # ###################################################################### # # WARNING: # # This file was generated by the CDE CreateAction tool. # If this file is modified by some other tool, such as vi, # the CreateAction tool will no longer be able to load and # update this file. For this reason, changes to this file # should be handled through CreateAction whenever possible. # ###################################################################### ACTION penumbraroot { LABEL penumbraroot TYPE COMMAND EXEC_STRING dtterm -name penumbraroot -e /usr/local/bin/slogin -l root pe numbra ICON umbraroot WINDOW_TYPE NO_STDIO } >From tpb@doctor.zk3.dec.com Tue Mar 23 07:22:19 1999 With an xterm, this script works: #!/bin/csh echo set icon and banner to \"$1\" printf "\033]2;$1\007" ! Icon printf "\033]1;$1\007" ! Window Banner I call it "seticon", and I have it in my path, so I can type, for instance, seticon doctor and it sets the icon name and banner string to "doctor". Whether this will work with a dtterm, I really don't know. But you can give it a try. >From Robert.Otterson@digital.com Tue Mar 23 07:23:22 1999 I never looked into that....I wrote a script to set up my windows ex: nohup /usr/dt/bin/dtterm -bg black -fg yellow -name SYS#1 & nohup /usr/dt/bin/dtterm -bg black -fg red -name SYS#2 & (etc) another thing that you may want to look at is "dxhosts" This will give you a window where you can put the hosts you want and if you use the default "xterm" will name your banner and icons. >From rnfrank@wolfram.llnl.gov Tue Mar 23 07:32:50 1999 I have a file which works in the ksh. It follows: #ksh cwt 1. apr. 1997 rnf if test "" = "$1" then name=$(hostname) echo " Enter a parameter with the command or title=hostname. " else name=$1 fi echo " ^[]0;$name^G " # the string to echo is composed by: # "v[];$namevG" # ie: controlvcontrol[] and so forth. # to change a window title (and icon title) just cwt newname >From ivo@scs.unr.edu Tue Mar 23 08:26:13 1999 There's ALL sorts of little options you can use - see man dtterm or man xterm (similar). Here's the command I use for each window I bring up: /usr/dt/bin/dtterm -geometry 120x30 -sl 15s +mb -name zonker -e ssh -l ivo zonker.subdomain.nevada.edu Which starts a dt term, 120x30 chars, lots of scrollback buffer, that ssh connects to (i.e.) zonker. The part you're looking for is the -name part. -name gives both the icon and the window a name (you can also set the icon or window name individually). I create a bunch of nice icons with /usr/dt/bin/dtcreate with actions for each machine I use. Cc: A.Mahendra.Rajah@Meena.CC.URegina.CA Try this: machine=`hostname` y=`printf "\235 21; %s \234" $machine` # for window bar echo $y y=`printf "\235 2L; %s \234" $machine` # for window icon echo $y From: Richard Bemrose I find the following alias useful: alias dxon "xon \!^ /usr/dt/bin/dtterm -ls -title \!^"