Operating System - HP-UX
1834465 Members
3295 Online
110067 Solutions
New Discussion

resize terminal settings after dtlogin

 
ecorban
Frequent Advisor

resize terminal settings after dtlogin

How do i resize terminal settings after i login to HPUX 11.1 host. Also, is there any docs that i can read about customizing dt after login ?
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: resize terminal settings after dtlogin

if [ "$TERM" = "xterm"]
then
# set terminal settings here.
echo #XTERM login found
else
echo "regular login normal settings apply
fi

This kind of logic testing for certain environment variables can handle the setting changes in .profile or /etc/profile

This search contains several good past threads and documents.

http://us-support.external.hp.com/emse/bin/doc.pl/sid=1c63fe300cca540d9f?todo=search&searchtext=dtlogin+TERM+settings&x=30&y=1&searchcriteria=allwords&searchtype=SEARCH_MANUAL&searchtype=SEARCH_FORUMS&searchcategory=ALL&rn=25&presort=rank


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
ecorban
Frequent Advisor

Re: resize terminal settings after dtlogin

What i'm asking is after i login through CDE,
I open a Terminal window and the size of it is huge, i want to make it really smaller...........Also the characters on the Terminal window are huge !
Sundar_7
Honored Contributor

Re: resize terminal settings after dtlogin


use the resize command

# resize

-- Sundar.
Learn What to do ,How to do and more importantly When to do ?
Mark Grant
Honored Contributor

Re: resize terminal settings after dtlogin

Eddie,

I haven't used dtterm in about 100 years but you could try changing the font by starting it with the argument "-fn 10x20" as it works with xterm. You can play with the values for "-fn" as I can't remember the other values.

You can put this in your local .xresources directory too.

Altenatively just use xterm. It will probably come up smaller anyway and you can change the fonts with CTRL ? right mouse button.
Never preceed any demonstration with anything more predictive than "watch this"
Bill Hassell
Honored Contributor

Re: resize terminal settings after dtlogin

resize simply reports the size of the current window. It was used (in the old days) to set COLUMNS and LINES by evaluating it:

eval $(resize)

However, all the modern Xwindow terminal emulators use SIGWINCH (window change signal) to set the character space (COLUMNS and LINES) when you drag the window corner to a new size. So resize has no effect on the font size or changing colors, etc.

Read the man page for dtterm for a list of the command line options. For example:

dtterm -foreground:white -background:navy

will change the window colors. An alternative is to set the desired values in .Xdefaults. See: http://forums1.itrc.hp.com/service/forums/bizsupport/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xeec0506d69a7d711abdc0090277a778c%2C00.html&forumId=2&admit=716493758+1076130198951+28353475

All 3 terminal emulators (dtterm, hpterm, xterm) have similar options and Xresources.


Bill Hassell, sysadmin