LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-20-2004, 05:21 AM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
xterm settings


Hi... In my suse 9.1 the xterm looks really small ... I want some fonts like verdana in font size of 12 and background color black and foreground white... Can u help me plz with the above options? I have tried but still i can;t do it..
Thxc
 
Old 11-20-2004, 05:41 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
You can do it from the command line - eg my favoured settings are:

xterm -sb -fg grey -bg black -sl 500 -j -ls -fn 7x14 -fb 7x14bold

Or you can change your .Xdefaults file so that an xterm will always load with the desired settings.

See the man page for more details
 
Old 11-20-2004, 05:54 AM   #3
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
Thx...and if i want to increase the font size? Also how i can change the font color
 
Old 11-20-2004, 07:46 AM   #4
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
Command line or from Xdefaults?

Command line:

xterm -fg white gives white text

xterm -fg black gives black text

.Xdefaults
XTerm*foreground: white gives white text

And so on.

Changing font can also be done from both the CLI and .Xdefaults file. A useful app is xfontsel which will display all your fonts and their variables, so you can choose the exact one you want. It can take some playing around tho.

It's probably easier to look at /usr/X11R6/lib/X11/fonts/misc/fonts.alias - this shows you the aliases for the default fonts. I personally use 7x14, which is an alias for the font:
-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1

This is specified in .Xdefaults by:
XTerm*boldFont: 7x14bold
XTerm*font: 7x14

Or in the CLI by xterm -fn 7x14
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 11 01-30-2023 04:45 AM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 03:51 AM
Mandrake 10.0 Gnome/KDE Taskbar icon settings...are there settings? LiquidRezin Linux - Newbie 2 03-22-2004 09:27 AM
Xterm Manny88 Linux - General 1 09-20-2003 05:37 PM
Changing US keyboard settings to Spain (SP) settings or Mexico. zLinuxz Linux - General 4 12-01-2002 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration