1825689 Members
3809 Online
109686 Solutions
New Discussion

Display question

 
SOLVED
Go to solution
Hunki
Super Advisor

Display question

One of my userid is diplaying only half the size of my terminal session while doing vi for a file. The shell was /bin/sh so I did an export SHELL=/bin/ksh but the problem persists and also changed the TERM to vt100 from xterm.

thanks,
hunki
2 REPLIES 2
Denver Osborn
Honored Contributor
Solution

Re: Display question

export the number of COLUMNS and LINES to whatever his window size is... using resize should take care of it.

/usr/bin/X11/resize

-denver
Bill Hassell
Honored Contributor

Re: Display question

> "half the size"

Does this mean that your session is 80 characters wide and 24 lines long while the other user has only 40 characters by 12 lines? Or are you referring to the font size? A smaller font will display the same character space but in a smaller physical window. The font size in Xwindows can be a challenge to troubleshoot. The reason is that you are not running the window on your PC, but instead it is running on the HP-UX machine (ie, xterm). But your PC has to run a special program to interpret the Xwindow codes and negotiate how to display the requested font on the PC screen. To make things even more tricky, the font in the terminal window may have been changed with the Xwindow desktop manager -- if used.

So the SHELL has no effect whatsover (btw: there is no /bin directory in HP-UX -- the correct directory is /usr/bin) and the TERM variable will have no effect on the window size because true terminals cannot change font size.

Just have the user change the font size for the xterm or dtterm window. This can be permanently set by adding the desired font size specified in the user's HOME directory with the .Xdefaults file.


Bill Hassell, sysadmin