1831676 Members
2193 Online
110029 Solutions
New Discussion

Configuration dtterm

 
SOLVED
Go to solution
Marcel Boon
Trusted Contributor

Configuration dtterm

Hi,

I have some problems with the configuration of the dtterm. Let me explain:
1) User root
2) In the $HOME/.profile: export myssytem=`uname -nrs`
When I use the next cmd: dtterm -title "$mysystem"
I get a new dtterm with title "HP-UX systemnname B.11.00"

I want these settings for default, so I changed $HOME/.Xdefaults. added *Title : "$mysystem".
Logoff and logon, start a dterm from the frontpanel. The Title is changed in "$mysystem" !! and not the value of that variable !
Is it a bug..? or do I something wrong ?

Marcel
See the man pages
6 REPLIES 6
Alex Glennie
Honored Contributor

Re: Configuration dtterm

make sure the .profile is being read dtterm*loginShell : True in .Xdefaults may help if not set ?
Marcel Boon
Trusted Contributor

Re: Configuration dtterm

Hi Alex,

I'm sure my .profile is read, because when I used the command dterm -title "$mysystem" it works fine.

When I change the .Xdefaults as you said, I only change the title of a dterm and not others. I already tried, no succes !
Evereything would be read as a string.

Marcel
See the man pages
Alex Glennie
Honored Contributor
Solution

Re: Configuration dtterm

I see what you mean ....

There is a man page 5 for dtterm. There the escape sequencese explained.

I found the following:export title=hello
echo "\033]2;$title\007"

this works for $myststem too I just tried ... I'd try to incorporate this into a script rather than the resource route ?
Marcel Boon
Trusted Contributor

Re: Configuration dtterm

Hi Alex,

I saw this solution,but is this the normal way?
This is what I did, after your answer:
In the /etc/profile:
export mysystem=`uname -nrs`
echo "\033]2;$mysystem\007"

I removed the *Title in the .Xdefaults.

Greetings, Marcel
See the man pages
Joseph C. Denman
Honored Contributor

Re: Configuration dtterm

you could change the /usr/dt/../../../C/dt.dt file. Find the execution on dtterm and add the title statement.

...jcd...
If I had only read the instructions first??
Brian Markus
Valued Contributor

Re: Configuration dtterm

I don't use the .X files for parm's on one of my boxes. I made an entry in
/etc/dt/config/C/sys.resource
*loginShell:true

That makes your entire system ignore the x stuff and use .profile You can also uncomment the same line in .Xdefaults

I'm not sure if that will help in your case, but the ps1, 2 and 3 as well as all your other variables will now work correctly.

Brian.

Brian
When a sys-admin say's maybe, they don't mean 'yes'!