1834597 Members
3975 Online
110069 Solutions
New Discussion

.Xdefaults

 
Fredric Vådegård
Frequent Advisor

.Xdefaults

Could someone help me how to set the window size in the .Xdefault file.

I have change the color (*background green), but I can´t figure out how to change the default size of the window (geometry?)

Thanks!
//Fredr
Fredde
6 REPLIES 6
Mark Grant
Honored Contributor

Re: .Xdefaults

You haven't said what window size you are trying to change. If it's just the size of an xterm try starting xterm with the following options.xterm -fn 10x20 -bg green -fg white
Never preceed any demonstration with anything more predictive than "watch this"
Fredric Vådegård
Frequent Advisor

Re: .Xdefaults

It works fine if I start a new hpterm from another terminal, but when stating it from Reflextion X some values will not take effect e.g. userFont

I have setup the parameters in a .Xdefault file.
*background: green
*userFont: 10x16
*Geometry: 132x40
*title: ------ TEST ------

//Fredric
Fredde
Nico Schockaert
Trusted Contributor

Re: .Xdefaults

Hello,
To have those setting by default, you need to add in .Xdefaults the following :
Xterm*Font: 10x20
Xterm*Background: green
Xterm*Foreground: white
When executing xterm, you will have automatically a font of 10x20, a green background and a white foreground.
Doing "man xterm" you will have the list of all resources you can set in .Xdefaults.
Hope his helps,
Nico
Mark Grant
Honored Contributor

Re: .Xdefaults

Fredrik, I haven't actually used one of these PC Xservers in a looong time but I belive that if the font is not available in reflections, it just won't work. Try setting it to yet another font. Do you have the entire desktopn in reflections or are you using reflections to rexec to the machine and then start up an hpterm. It is nearly always better to log in using XDMCP from reflections.
Never preceed any demonstration with anything more predictive than "watch this"
RolandH
Honored Contributor

Re: .Xdefaults

ReflectionX is using it's own installed fonts. If the font you using in .Xdefault is not installed/available on the PC it will use its standard font.

Otherwise you can try to configure ReflectionX to use a font-server. Then configure you unix machine to be a font server (How this be made is often explained in this forum. search for that).
The ReflectionX will use the fonts from your unix machine.


HTH
Roland
Sometimes you lose and sometimes the others win
Bill Hassell
Honored Contributor

Re: .Xdefaults

Rememeber that Reflection/X is an Xwindow terminal emulator and attempts to perform the tasks requested by the client program (for instance, Xterm or HPterm). The .Xdefault file must reside in the HOME directory of the machine and login used to start the Xterm program. Since background works OK, then this is the case and you are facing font problems. There are literally thousands of fonts in the world of Xwindows and no one emulator can possibly have them all. Fonts are extremely detailed including the family (ie, Courier, Arial, Times Roman), point size, pitch (fixed or proportional), emhphasis (bold, italic) and so on. When you specify 10x20 for a font, there are a HUGE number of defaults that are definitely not the same from server to server so the font may need to be fully qualified, or better yet, always setup HP-UX as a font server and tell Reflection/X to use the HP-UX system as a font server. You'll avoid endless font and spacing issues.

BTW: You may find the Reflection for HP is 100x faster and more versatile than Xwindows. Unlike Xwindows where you have to steal execution resources from the host (ie, Xterm or HPterm), Reflection for HP is a local PC host and uses scalable fonts and locally-defined color schemes. It reduces LAN traffic by as much as 100:1 (no colors, fonts, decorations transmitted) since it uses simple telnet and OpenSSH for commnication with the host. Additionally, it takes less than 1 minute to create a custom login script and make an icon that logs in with just a click. See the details at wrq.com


Bill Hassell, sysadmin