Operating System - HP-UX
1832143 Members
2837 Online
110038 Solutions
New Discussion

Common Desktop Environment - CDE

 
SOLVED
Go to solution
Andrew Luis Arruza
Frequent Advisor

Common Desktop Environment - CDE

Can anyone tell me how to put the name of the server in the CDE window where it presently prints "dtterm."
I had this information from a class I took and now cannot find it.
This is a 'small' matter but I do appreciate any/all help.
Thanks,
Andy
It is, after all, a matter of survival!!
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: Common Desktop Environment - CDE

If you invoke dtterm from the command line, you can use the '-title' option.

I manually open new terminal with the following command:

dtterm -title servername -e rlogin servername &

If I want to keep the window as a part of my CDE, I go in and set the current session to the HOME session and make sure CDE is set to return to the HOME session when I log back in.
Kenneth Platz
Esteemed Contributor

Re: Common Desktop Environment - CDE

Alternatively, you can add this line to your .profile on your remote system:

echo "\033]0;$(hostname)\007"

This will send the dtterm escape sequence to set the window title and the icon title to the hostname of the target system. This is also documented in the man page for dtterm(5)
I think, therefore I am... I think!