LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2008, 05:58 PM   #1
nmansour
Member
 
Registered: Sep 2006
Location: Chicago
Distribution: Ubuntu 8.04 - Fedora 9 on an AMD 64bit Machine
Posts: 101

Rep: Reputation: 15
xterm control


Hi,

I am trying to use xterm, I could not configure some of its features.
I want it to be configured such that:

background color is balck
foreground color is yellow (or green)
font is monospace, size 11 (i prefer big fonts)
and geometry is 125*30

I have used xtermcontrol and the following is the .xtercontrol file I have on my working directory:

Code:
#
# This is the configuration file for xtermcontrol.
#
# Each line in the file is either a comment or contains an attribute.
# Attributes consist of a keyword and an associated value:
#
# keyword = value # comment
#
# Whitespace is ignored in attributes unless within a quoted value. The
# character '#' is taken to begin a comment. Each '#' and all remaining
# characters on that line is ignored.
#

# foreground color
foreground="green"

# background color
background="black"

# highlight color
highlight="yellow"

# cursor color
cursor="red"

# mouse pointer foreground color
#mouse-foreground="black"

# mouse pointer background color
#mouse-background="white"


# size and/or position
geometry="125x30"

# font
font="monospace"

# color definitions
#color0="#000000"
#color1="#c00000"
#color2="#008000"
#color3="#808000"
#color4="#0000c0"
#color5="#c000c0"
#color6="#008080"
#color7="#c0c0c0"
#color8="#808080"
#color9="#ff6060"
#color10="#00ff00"
#color11="#ffff00"
#color12="#8080ff"
#color13="#ff40ff"
#color14="#00ffff"
#color15="#ffffff"
It is saved in my home directory, yet no changes took place. Please help.

Noha
 
Old 08-01-2008, 06:39 PM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Does this program work with XOrg X11 vs. XFree86 ?
 
Old 08-01-2008, 07:36 PM   #3
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
If you have a variable PROMPT_COMMAND in your global or user specific .bashrc - this will overwrite whatever xtermcontrol says.
To get around this you have to unset this variable.
Change ~/.bashrc or the global one or issue:
Code:
unset PROMPT_COMMAND
You can still set your prompt via the PS1 variable IIRC.
Also: the line
Code:
xtermcontrol
should be in ~./bashrc
http://www.thrysoee.dk/xtermcontrol/
http://www.linux-user.de/ausgabe/200...rol/index.html
it is german - look in the section labelled:
Kasten 2: Regelmäßige Ausführung in der Bash"
 
Old 08-01-2008, 08:34 PM   #4
nmansour
Member
 
Registered: Sep 2006
Location: Chicago
Distribution: Ubuntu 8.04 - Fedora 9 on an AMD 64bit Machine
Posts: 101

Original Poster
Rep: Reputation: 15
Hi,

Thank you all for the reply.

Mr. C: xterm can be found on any linux distro and yes, it works with XORG.
Jomen: Thank you, I added a line with "xtermcontrol" in my .bashrc file and it did the trick.
The problem now is how to adjust the font name and size.

Noha
 
Old 08-01-2008, 08:36 PM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Sorry, I meant the control program. I know xterm is available.

I've never used xtermcontrol, so wasn't sure as documentation indicates XFree86 specifically. I've always just set the xterm resources.

Since you got it to work, I know the answer now.
 
Old 08-01-2008, 10:50 PM   #6
nmansour
Member
 
Registered: Sep 2006
Location: Chicago
Distribution: Ubuntu 8.04 - Fedora 9 on an AMD 64bit Machine
Posts: 101

Original Poster
Rep: Reputation: 15
yes, I got it to work, but I still can't configure the font and its size.

Oh, buy the way, I am using ubuntu now. I used to be a RedHat/Fedora user since 1998. I just made the move after Fedora 9!

Noha

Last edited by nmansour; 08-01-2008 at 10:51 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm -display remote:0.0 Can't open display - xterm from tru64 to debian 3.1 loopy69 Linux - Software 2 04-01-2008 07:54 PM
xterm - howto lauch an xterm into a specific directory jobano Linux - Software 8 02-26-2008 04:18 PM
When I tries to execute the xterm i got this message: xterm: no available ptys johnsanty Other *NIX 4 09-20-2006 01:29 PM
xterm alt becomes compose? Only xterm affected. -0- Linux - Software 0 09-13-2006 12:59 AM
how is black xterm background in IceWM when issue a xterm command? BRAHmS Linux - Software 1 02-14-2005 04:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:16 AM.

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