1831382 Members
3309 Online
110025 Solutions
New Discussion

dtterm command

 
SOLVED
Go to solution

dtterm command

Hi,
I'm using the command dtterm to launch a command.
Anyone gots examples for the arguments : font, size, color, position ?
Where can I get all the possible values ?
Thanks in Advance
Laurent MENEGUZY
6 REPLIES 6

Re: dtterm command

Sorry!
read "to launch a window" instead of "to launch a command"
Sanjay_6
Honored Contributor

Re: dtterm command

Hi,

Don't know about dtterm, but i use hpterm for my use. You can look at the options available with hpterm command by doing "man hpterm"

some examples with of hpterm with options are,

/usr/bin/X11/hpterm -ls -sb -fn 9x15 -geometry 80x50 -display @d

/usr/bin/X11/hpterm -ls -sb -sl 1024 -display @a:0

Hope this helps.

regds

Alex Glennie
Honored Contributor

Re: dtterm command

see man 1 dtterm for full listing but you can either use command line options or a resource file to set color position etc :

If you choose the resource route create a file called $HOME/.Xdefaults :

add resources like :

Dtterm*foreground:Wheat
Dtterm*background:MidnightBlue
*saveLines:4000
*scrollBar:True
*pointerColor:yellow
*pointerColorBackground:red
*geometry:
*userFont:

etc , exit CDE and log back in the resources should then take effect.

As to the command line : see man page but generally they follow similar syntax :

eg dtterm -ls -sl 400 -bg blue etc
jean-yves poch
Advisor
Solution

Re: dtterm command


Hi Laurent,

The generic dtterm options is the generic xterm options.
the xterm exist with X11 (all unix system).
dtterm is exist with CDE (SUN,HP,IBM).

the useful option is :
-display machine:0 : execute from a remote machine
-geometry 80x24 : 80 columns 24 lines (default), like a alphanumeric terminal
-fg colour : color of the text
-bg colour : color of backgroung window
-tn vt100 : type of terminal. the default is dtterm. Otherwise vt100, vt220, vt320 can be use, for old alphanuric softs or serial configuration for peripherique (a switch). dtterm, vt100,vt220 and vt320 can be use with ... vi. -tn change the TERM variable.
-ls : login shell. your .profile .kshrc .cshrc .login ... is intepreted. Your environnement is'nt automatcally interpreted. (Xterminal, the shell, ...)
-e command : execute a command and then exist. for a command with option, -e is last option, and the command is quoted.
ie -e "find . -exec ls {} \;"
-name truc : the name of the window is truc.

The Pharaon Alex informations is very cool.
Use $HOME/.Xdefaults for default options of your account.

Where find the resources :
- in the man
- /usr/lib/X11/app-defaults
- /usr/dt/app-defaults/$LANG (file Dtterm)

Where find the color : /usr/lib/X11/rgb.txt

Where find books : "Le monde en tique" librairie

Jean-Yves




pitstop
Anu Mathew
Valued Contributor

Re: dtterm command

Hi Laurent,

Just in case if you are looking to open a notification window, hpterm can be used as:

/usr/bin/X11/hpterm -bg red -fg black -display $system -geometry 300x300 -title "title_you_want_to_show" -e /usr/local/bin/scripts/notice "IN DEFAULT IN CASE - NO ONE ELSE WAS NOTIFIED" &

Where the content of /usr/local/bin/scripts/notice is:

echo $1
sleep 4000

(This helps the hpterm window opened for 4000 seconds.)

Better way is to use xdialog:

/usr/bin/xdialog -display $xterm:0 -fg yellow -bg blue -f $file -geometry
3000x3000 -t "Title_you_want_to_show." -
O "Noted, thanks." &


Hope this helps,

Thanks

Anu Mathew

Re: dtterm command

thanks for your help !