I have a situation where gnome console does not handle vt102 escape sequences properly and therefor need to employ xterm instead. When I run xterm from a gnome terminal window I am presented with an extremely small terminal window employing an almost unreadably small font.
I have attempted to set the font size using xrdb and a custom .Xresources file. I can change the colour scheme. I can create a scrollbar. I can move the scrollbar to either the right or left window margin. What I cannot do is to change the font size.
When I do xfontsel I get this error: Warning: Missing charsets in String to FontSet conversion and I see only four fonts listed in the application window, all of them small and none with a point size of greater than 12.0.!
If I do fc-cache -f -v I see 14+ font directories containing more than 100 fonts
# fc-cache -f -v /usr/share/fonts: caching, 0 fonts, 7 dirs /usr/share/fonts/bitmap-fonts: caching, 31 fonts, 0 dirs /usr/share/fonts/bitstream-vera: caching, 10 fonts, 0 dirs . . . fc-cache: succeeded
but I also see lots of this:
/var/cache/fontconfig: invalid cache file: f93b699072f38b46be29013fc93f1bbe-x86.cache-2 /var/cache/fontconfig: invalid cache file: 7ddba6133ef499da58de5e8c586d3b75-x86.cache-2
I really need some help sorting this out. If someone could explain to me what I am missing I would be most grateful.
On Fri, Jan 07, 2011, James B. Byrne wrote:
I have a situation where gnome console does not handle vt102 escape sequences properly and therefor need to employ xterm instead. When I run xterm from a gnome terminal window I am presented with an extremely small terminal window employing an almost unreadably small font.
I have attempted to set the font size using xrdb and a custom .Xresources file. I can change the colour scheme. I can create a scrollbar. I can move the scrollbar to either the right or left window margin. What I cannot do is to change the font size.
An easier way to handle this is to create a $HOME/XTerm file which will be used each time an xterm is started. I'm including mine which sets a large font and several other options I like.
Bill
On Fri, January 7, 2011 15:00, Bill Campbell wrote:
On Fri, Jan 07, 2011, James B. Byrne wrote:
I have attempted to set the font size using xrdb and a custom .Xresources file. I can change the colour scheme. I can create a scrollbar. I can move the scrollbar to either the right or left window margin. What I cannot do is to change the font size.
An easier way to handle this is to create a $HOME/XTerm file which will be used each time an xterm is started. I'm including mine which sets a large font and several other options I like.
I copied your file into my home directory as ~/XTerm and took a look at its contents. As far as I can see you did not intend for me to make any alterations to it to begin with.
With this file in place and ~/.Xresources renamed to ~/Xresources.test I started xterm from a gnome terminal. There were several changes in behaviour, so I infer that the file is recognized and loaded by xterm. However, the font size remains unchanged. I suspect that there is something wrong with the xfont configuation on this system since xfontsel can only see four fonts and there are literally dozens available. Since xterm apparently only knows about four fonts then it cannot be altered to use any other.
How do I get xterm to recognize the availability of these additional fonts?
On Fri, 7 Jan 2011, James B. Byrne wrote:
To: centos@centos.org From: James B. Byrne byrnejb@harte-lyne.ca Subject: [CentOS] Set font and size in xterm
I have a situation where gnome console does not handle vt102 escape sequences properly and therefor need to employ xterm instead. When I run xterm from a gnome terminal window I am presented with an extremely small terminal window employing an almost unreadably small font.
Have you tried using konsole from KDE desktop packages?
kdebase-3.5.4-21.el5.centos.1.i386 : K Desktop Environment - core files Repo : updates Matched from: Filename : /usr/bin/konsole
That works well under most linux desktops.
Keith
----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
At Fri, 7 Jan 2011 21:23:40 +0000 (GMT) CentOS mailing list centos@centos.org wrote:
On Fri, 7 Jan 2011, James B. Byrne wrote:
To: centos@centos.org From: James B. Byrne byrnejb@harte-lyne.ca Subject: [CentOS] Set font and size in xterm
I have a situation where gnome console does not handle vt102 escape sequences properly and therefor need to employ xterm instead. When I run xterm from a gnome terminal window I am presented with an extremely small terminal window employing an almost unreadably small font.
Have you tried using konsole from KDE desktop packages?
kdebase-3.5.4-21.el5.centos.1.i386 : K Desktop Environment
- core files
Repo : updates Matched from: Filename : /usr/bin/konsole
That works well under most linux desktops.
Keith
Or, you put the desired options for your XTerm in the X11 options database using xrdb.
Create a .Xdefaults and arrange to load it during X session startup (I have no clue if the GNome desktop system even looks for this file). If GNome does not do this on itself, include a line like
xrdb .Xdefaults
in a script run at X session start up.
Into this file you will want something like:
XTerm*background: green XTerm*foreground: black XTerm*cursorColor: red Xterm*VT100*geometry: 80x38 XTerm*scrollBar: true XTerm*font: -misc-fixed-medium-r-normal-*-15-*-*-*-*-*-*-1
This is *my* setup: my xterms have a green background, with black text, a red cursor, an VT100 geometry of 80x38 (characters), with a scrollbar, and using the font specified by '-misc-fixed-medium-r-normal-*-15-*-*-*-*-*-*-1'.
More information:
man xrdb man xterm
Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net]
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Robert Heller wrote: <snip>
This is *my* setup: my xterms have a green background, with black text, a red cursor, an VT100 geometry of 80x38 (characters), with a scrollbar, and using the font specified by '-misc-fixed-medium-r-normal-*-15-*-*-*-*-*-*-1'.
<snip> Here's a related question: I've played around in the past, but have never gotten it to work: I want to arrange *where* firefox and thunderbird come up on my screen. They don't *seem* to recognize -geometry.... Any idea?
mark
At Fri, 7 Jan 2011 16:42:56 -0500 CentOS mailing list centos@centos.org wrote:
Robert Heller wrote:
<snip> > This is *my* setup: my xterms have a green background, with black text, > a red cursor, an VT100 geometry of 80x38 (characters), with a scrollbar, > and using the font specified by > '-misc-fixed-medium-r-normal-*-15-*-*-*-*-*-*-1'. <snip> Here's a related question: I've played around in the past, but have never gotten it to work: I want to arrange *where* firefox and thunderbird come up on my screen. They don't *seem* to recognize -geometry.... Any idea?
You are basically out of luck, unless there is something in the depths of .gtk<mumble> or .gconf<mumble> that handles this.
GNome / GTK applications don't look at the X11 database and don't take any of the traditional X11 application command like arguments (even when they are listed in the man pages for said applications!).
mark
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos