Date: Wed, 7 Sep 2005 20:20:21 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Rem Roberti <remegius@comcast.net> Cc: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: configuring xterm Message-ID: <20050907182021.GA29432@slackbox.xs4all.nl> In-Reply-To: <431F2340.8020201@comcast.net> References: <431F2340.8020201@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 07, 2005 at 10:28:32AM -0700, Rem Roberti wrote: > I am a new user, have FreeBSD 5.4 up and running, and am very grateful=20 > to be rid of the blue screen of death. I'm going to have a bunch of=20 > questions, but first things first: >=20 > 1) When I start X three xterm windows appear. Can I configure it so=20 > that only one appears? Yes. Copy /usr/X11R6/lib/X11/xinit/xinitrc.default to your home directory, and name it .xinitrc (mind the period at the front); cp /usr/X11R6/lib/X11/xinit/xinitrc.default ~/.xinitrc The last lines of this file are: twm & xclock -geometry 50x50-1+1 & xterm -geometry 80x50+494+51 & xterm -geometry 80x20+494-0 & exec xterm -geometry 80x66+0+0 -name login Remove two xterms, so that it becomes: twm & xclock -geometry 50x50-1+1 & exec xterm -geometry 80x66+0+0 -name login If you close the xterm, it will end your X session. If you don't want that, change it to xclock -geometry 50x50-1+1 & xterm -geometry 80x66+0+0 -name login & exec twm > 2) The font size in the xterm window is quite small. How do I change=20 > the font size? You can do this in seceral ways. First is to use the '-fn' option when you start an xterm, e.g:=20 xterm -fn '-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-15' You can use the xlfonts and xfontsel programs to see all available fonts. A better solution is to define some so-called 'resources' in a file called .Xresources in your home directory. My .Xresources file has the following for xterms (lines starting with ! are comments): ! for xterm XTerm*foreground: white XTerm*background: #010040 XTerm*font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-15 XTerm*title: Shell XTerm*loginShell: True XTerm*scrollBar: False XTerm*saveLines: 0 XTerm*ttyModes: erase ^H XTerm*vt100.translations: #override \ Home: string("\033[1~") \n\ Delete: string("\033[3~") \n\ End: string("\033[4~") ! For use with LC_ALL=3Den_US.UTF-8 ! XTerm*font: -adobe-courier-medium-r-normal--14-140-75-75-m-90-iso10646-1 The resources that can be set for xterm are documented in the xterm manual, accessible by typing 'man xterm' in a terminal window. Roland --=20 R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDHy9lEnfvsMMhpyURAivtAKCiZC+D3b4cL1E7FGsaZCD1gXSx5wCeOTap 1udBL0GnHqu/dvPsTtrT2L8= =btjc -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050907182021.GA29432>