Article View: comp.windows.x
Article #36589Re: Building some of the clients
From: Peter Morreale
Date: Fri, 09 Feb 1990 02:10
Date: Fri, 09 Feb 1990 02:10
90 lines
4053 bytes
4053 bytes
In article <RAZDAN.90Feb8162702@chanakya.oakhill.uucp> you write:
>
> Two questions to make things clear:
>
> (a) How do I specify "vt100" on a command line. For example I want to invoke
> xterm from a shell (or twm menu)
>
> xterm -geometry 100x50 is what I would do normally.
>
Try: xterm -geometry 100x50 -tn vt100
This will set the TERM env. variable to be vt100. Be forwarned that
the vt100 termcap entry has settings for an 80x24 screen. Most of
your editing will be mucked up. (ie: not take advantage of your
screen size) There is an xterm termcap entry in the sources for xterm.
Have your system administrator install this in the termcap database.
> Also how can I put it in my default file (which would be .XTerm in $HOME)
> Say for example I want to set geometry of a xterm window called Window1.
> Do I say
> XTerm*Window1*vt100.geometry: 30x23. In particular "xterm*vt100.geometry"
> option is not clear. Sorry for asking a dumb(?) question.
Not dumb at all. There are two things you must know.
1) how to tell the client which resources are his/hers, and
2) how to set the resources so that client picks them up.
For the first, use the "-name" option on the commandline to tell xterm
which instances(?) of resources to grab from the resource database.
Then you use that name in your resource file to define the resources
that you want for that client. Example:
xterm -name XTerm-wind1 .......
Then in your resource file:
XTerm-wind1*VT100.geometry: 80x32
As far as the "xterm*vt100.geometry:" suggestion... In R4 xterms,
there is menu widget below the VT100 widget that also has a geometry
specification. In the case of the menu widget, a "standard" VT100
geometry of 80x32 would make the menus window 80x32 *pixels* in size.
These are fairly difficult to read....
Many people, myself included, had geometry specifications of:
xterm*geometry: 80x40
or
xterm*VT100*geometry: 80x40
This would match the menu's requirements as well. By using:
xterm*VT100.geometry: 80x40
You explictly set the (for lack of a better word) *regular* xterm
window to 80x40 and the menu windows will size themselves according
the the font used. The "." after the VT100 is all important in this
case.
>
> (b) Refer to original question (a) I have simmilar problems with all the
> clients that use athena widgets. For example the initial window of xman
> or the menu buttons of xmh also have humongous windows. Surprisingly
> this thng is not noticed on other work stations running the same
copy of clients.
> I do not have a clue as to what environ variable or some thing
else I may be setting
> or not setting.
>
Probably the same sort of thing. Check those resources as well.
Outside of this, you really need to read the man pages for the
clients you expect to be using. When I first started I found it
useful to pick one client and continually set resources and see the
results.
Hope this helps,
-PWM
------------------------------------------------------------------
Peter W. Morreale email: morreale@ncar.ucar.edu
Nat'l Center for Atmos Research voice: (303) 497-1293
Scientific Computing Division
Consulting Office
------------------------------------------------------------------
Technical Details
Message-ID:
<6257@ncar.ucar.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!husc6!ncar!bierstadt.ucar.edu!morrealeReferences:
<RAZDAN.90Feb8162702@chanakya.oakhill.uucp> <RAZDAN.90Feb6110751@chanakya.oakhill.uucp>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!husc6!ncar!bierstadt.ucar.edu!morreale From: morreale@bierstadt.ucar.edu (Peter Morreale) Newsgroups: comp.windows.x Subject: Re: Building some of the clients Message-ID: <6257@ncar.ucar.edu> Date: 9 Feb 90 02:10:23 GMT References: <RAZDAN.90Feb8162702@chanakya.oakhill.uucp> <RAZDAN.90Feb6110751@chanakya.oakhill.uucp> Sender: news@ncar.ucar.edu Reply-To: morreale@bierstadt.ucar.edu (Peter Morreale) Organization: NCAR / Scientific Computing Division Lines: 90