1833772 Members
2319 Online
110063 Solutions
New Discussion

Re: rename hpterm window

 
Maurice Skubski
Trusted Contributor

rename hpterm window

hello, i want to rename the hpterm window. that means, if i open a hpterm, i want always see the machine name (uname -al) in the header. is this possible and how? thanx maurice
TIP: ITO was renamed to VPO. And now with Version 7 it is renamed to OVO (OpenView Operations)
7 REPLIES 7
Andreas Voss
Honored Contributor

Re: rename hpterm window

Hi,

here the solution you could put into your $HOME/.profile or /etc/profile:

case $TERM in
hpterm) title=`uname -al`
echo "\033&f0k${#title}D${title}\c" # title for window
echo "\033&f-1k${#title}D${title}\c" # title for icon
;;
esac


Regards
Alex Glennie
Honored Contributor

Re: rename hpterm window

vi $HOME/.Xdefaults :

hpterm*Title : ?
Maurice Skubski
Trusted Contributor

Re: rename hpterm window

thanx for this. i have made the changes. how can i perform these changes without a restart?
TIP: ITO was renamed to VPO. And now with Version 7 it is renamed to OVO (OpenView Operations)
Alex Glennie
Honored Contributor

Re: rename hpterm window

reload Xresouces => CDE Application Manager (CDE font Panel) => Desktop tools=> Reload Resources .

Or ...

re-read the .profile say open up a dtterm with "dtterm -ls &" ?

Or

Log out of CDE and then back in again (I'd say that was a restart but not a reboot).
Maurice Skubski
Trusted Contributor

Re: rename hpterm window

hello andreas, sorry, but it doesn't work i'm not so experienced in HP-UX so mayber it is my fault :( is there something, i have to do before i make this entry in the /etc/profile (i put the entry to the end of the file). thanx maurice
TIP: ITO was renamed to VPO. And now with Version 7 it is renamed to OVO (OpenView Operations)
federico_3
Honored Contributor

Re: rename hpterm window

try to use this script in your .profile:

title `hostname`

federico
federico_3
Honored Contributor

Re: rename hpterm window

..Sorry but the title script is a binary script, so if you are interested ask me for it at federico.grattarola@fao.org


Federico