Re: xterm font is W I D E
On Wed, Dec 16, 1998 at 11:54:36PM -0600, Kent West wrote: I've got a couple of boxes running hamm. One has KDE as the wm (excuse me, environment), and the other has FVWM. On both of them, when X starts, the default xterm window looks great, but if I open another one, the window is very wide and the font is widely spaced, l i k e t h i s. I've tried looking for various .rc files and man xterm and the like, but being a newbie, I'm not sure I'd see the setting if it was highlighted in yellow and was waving a flag. ROTFL! :-) I was having the same problem - only with KDE though, but I do not use fvwm. I solved the problem with KDE by removing the app-defaults file for XTerm in KDE (/usr/share/apps/kdisplay/app-defaults/XTerm.ad). I don't know what happens with fvwm though. BTW: If you have another KDE-Version than I try find / -name XTerm.ad to locate the file or, better and faster if you have a locate db, locate XTerm.ad. Anyone know where I can fix second and third and etc xterm windows to look like my first one? See above :) cu Torsten pgpBd0tMDD2aE.pgp Description: PGP signature
Re: xterm font is W I D E
I've got a couple of boxes running hamm. One has KDE as the wm (excuse me, environment), and the other has FVWM. On both of them, when X starts, the default xterm window looks great, but if I open another one, the window is very wide and the font is widely spaced, l i k e t h i s. I've tried looking for various .rc files and man xterm and the like, but being a newbie, I'm not sure I'd see the setting if it was highlighted in yellow and was waving a flag. Anyone know where I can fix second and third and etc xterm windows to look like my first one? xterm takes a lot of parameters, you can run several very different looking xterms. The manpages for xterm and X explain it. For a quick fix, take a look at the command that starts the first xterm. It is probably in .xinitrc if you are starting x from a command line. (xdm users will find it in some other place) Use the same command with the same parameters for starting more xterms. If using a menu - fix the menu so the xterm action has the same parameters as the first xterm. For details on the menu - read the docs for whatever window manager you use. If using the command line - type the parameters or set up an alias. (man/info bash for info on aliases, basically: alias xterm=xterm parameter parameter ... Helge Hafting
Re: xterm font is W I D E
At 09:43 AM 12/17/1998 +0100, Helge Hafting wrote: I've got a couple of boxes running hamm. One has KDE as the wm (excuse me, environment), and the other has FVWM. On both of them, when X starts, the default xterm window looks great, but if I open another one, the window is very wide and the font is widely spaced, l i k e t h i s. I've tried looking for various .rc files and man xterm and the like, but being a newbie, I'm not sure I'd see the setting if it was highlighted in yellow and was waving a flag. Anyone know where I can fix second and third and etc xterm windows to look like my first one? xterm takes a lot of parameters, you can run several very different looking xterms. The manpages for xterm and X explain it. For a quick fix, take a look at the command that starts the first xterm. It is probably in .xinitrc if you are starting x from a command line. (xdm users will find it in some other place) Use the same command with the same parameters for starting more xterms. If using a menu - fix the menu so the xterm action has the same parameters as the first xterm. For details on the menu - read the docs for whatever window manager you use. If using the command line - type the parameters or set up an alias. (man/info bash for info on aliases, basically: alias xterm=xterm parameter parameter ... Helge Hafting My /etc/X11/xinit/xinitrc has this line: exec xterm -geometry 80x24-0-0 I went to my good first xterm window and typed in: xterm -geometry 80x24-0-0 (I also tried exec xterm -geometry 80x24-0-0) and a new xterm window opened up but it made no difference. So apparently something else is going on. Thanks for trying though.
Re: xterm font is W I D E
Having an xterm with widely-spaced fonts is usually an indication that you are trying to use a proportional font instead of a fixed-width font. This can confuse the X server if it can't handle proportional fonts or the fon't doesn't have the width information necessary. I don't think most xterms can handle them, but most try to display them anyway and take the safe way out to display them by allotting each character a fixed extra-wide space so the characters won't be drawn overlapping. Since the first window looks good, I would suspect you are either setting a new font as the default in your resources or the font path is being changed and it can't find the specified font. Frank At 09:43 AM 12/17/1998 +0100, Helge Hafting wrote: On both of them, when X starts, the default xterm window looks great, but if I open another one, the window is very wide and the font is widely spaced, l i k e t h i s. Anyone know where I can fix second and third and etc xterm windows to look like my first one?
Re: xterm font is W I D E
Kent West wrote: Anyone know where I can fix second and third and etc xterm windows to look like my first one? I believe that the correct way to do this is to add xterm resource settings to your ~/.Xdefaults (which some people preferr to call ~/.Xresources) file. This is a method of setting attributes for an entire category of X clients, like all xterms. IIRC, your ~/.Xdefaults is loaded by a calling xrdb in your ~/.xinitrc file. (~/.xinirc is alos sometimes called ~/.xsession if you are using xdm.) I seem to recall that Xemacs has a very well documented sample.Xdefaults file accessable under it's help menu. This won't help with xterm resource settings but it does serve a a good example of setting them. Just for kicks here is a clip of my .Xdefaults regarding xterm settings. I'm not 100% sure if this is the most correct waqy to set these but they seemed to work. --- ! File: .Xdefaults ! This is where resources are specified for X applications ! ! To Reload these setting onto the X server use: ! ! xrdb -load ~/.Xdefaults ! XTerm*font: 9x15 XTerm*boldfont: 9x15bold XTerm*menufont: -bh-lucidatypewriter-bold-r-normal-sans-12-120-75-75-m-70-iso8859-1 XTerm*background: navy XTerm*foreground: white XTerm*cursorColor: yellow XTerm*pointerColor: yellow XTerm*pointerColorBackground: navy XTerm*color0: Black XTerm*color1: Red XTerm*color2: Green XTerm*color3: Yellow XTerm*color4: Blue XTerm*color5: Magenta XTerm*color6: Cyan XTerm*color7: White !XTerm.vt100.geometry: 79x25 XTerm*reverseWrap: true XTerm*jumpScroll: true XTerm*scrollKey:true XTerm*saveLines:2048 XTerm*scrollBar:true XTerm*charClass:33:48, 37:48, 45-47:48, 126:48 XTerm*visualBell: true --- HTH, Keith