Operating System - HP-UX
1834747 Members
2503 Online
110070 Solutions
New Discussion

Re: Changing default CDE terminal type

 
SOLVED
Go to solution
Joseph Ujfalusi
Occasional Contributor

Changing default CDE terminal type

Is there a way to change the default terminal type in CDE from dtterm to xterm?

In VUE there was the VUETERM environment variable that we set in /etc/profile.
2 REPLIES 2
Nico Schockaert
Trusted Contributor
Solution

Re: Changing default CDE terminal type

Hello,
Here are to configure hpterm instead of dtterm:
1. Copy these two files:
- dtwm.fp
- dt.dt
from this directory:
/usr/dt/appconfig/types/C directory
to this directory:
/etc/dt/appconfig/types/C directory. You may
Note: You must create the /etc/dt/appconfig/types/C directory.
Note: If LANG is not equal to C, you you must replace the C
directory with the setting to your $LANG variable.
2. Edit the file dtwm.fo and search for Dtterm.
Replace this line:
PUSH_ACTION Dtterm
with this line:
PUSH_ACTION My_hpterm.
Note: Save the old line, but comment it out.
Note: The function block should appear as shown below:
CONTROL Term
{
TYPE icon
CONTAINER_NAME PersAppsSubpanel
CONTAINER_TYPE SUBPANEL
POSITION_HINTS 1
ICON Fpterm
LABEL Terminal
# PUSH_ACTION Dtterm
PUSH_ACTION My_hpterm
HELP_TOPIC FPOnItemTerm
HELP_VOLUME FPanel
}
3. Edit the file dt.dt and search for the line ACTION Dtterm.
Copy the whole function block and rename the copied function
block to ACTION My_hpterm. Change this line:
EXEC_STRING /usr/dt/bin/dterm
to this line:
EXEC_STRING /usr/bin/X11/hpterm
Note: The function block should appear as shown below:
ACTION My_hpterm
{
LABEL Terminal
ARG_COUNT 0
ICON Dtterm
TYPE COMMAND
WINDOW_TYPE NO_STDIO
EXEC_STRING /usr/bin/X11/hpterm
DESCRIPTION The Terminal (Dtterm) action runs the
desktop Terminal Emulator application.
}
4. Restart the workspace manager to activate the change.
Hope this helps,
Nico
Steven E. Protter
Exalted Contributor

Re: Changing default CDE terminal type

set the variable TERM in .dtprofile

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com