Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79265 - aterm-0.4.2-r11 doesn't follow foreground setting in .Xdefaults
Summary: aterm-0.4.2-r11 doesn't follow foreground setting in .Xdefaults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL: http://www.cs.pitt.edu/~mikeg/aterm-b...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-23 14:29 UTC by Mike Gualtieri
Modified: 2005-02-06 19:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gualtieri 2005-01-23 14:29:25 UTC
I ran into two problems when upgrading to aterm-0.4.2-r11.

1.  The text foreground color doesn't get set with the value in .Xdefaults. All other settings found in the file are applied however.

This is in the .Xdefaults, and worked prior to this upgrade.
Aterm*foreground: gray

The foreground setting can be applied on the command line as such
aterm -fg gray

This however leads to another problem.

2.  When applyign this settign on the command line the highliting is messed up.  Instead of inverting the colors it shows it as gray on gray.

Here are some URL's that show the problem graphically:

Good screen shots:
aterm
http://www.cs.pitt.edu/~mikeg/aterm-good.png

aterm highlited:
http://www.cs.pitt.edu/~mikeg/aterm-good-hilight.png

Bad shots:

aterm with black foreground text:
http://www.cs.pitt.edu/~mikeg/aterm-bad.png

aterm with -fg gray turned on and the bad highlighting:
http://www.cs.pitt.edu/~mikeg/aterm-bad-hilight.png 

I compiled it with CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" and still no luck.


Reproducible: Always
Steps to Reproduce:
1st problem:
1. emerge =x11-terms/aterm-0.4.2-r11
2. put these lines in ~/.Xdefaults (probably only need the foreground line though):

Aterm*scrollBar: true
Aterm*transparent: true
Aterm*background: black
Aterm*foreground: gray
Aterm*shading: 65
Aterm*loginShell: true
Aterm*saveLines: 5000
Aterm*font: -misc-fixed-medium-r-normal-*-13-*-*-*-c-*-iso8859-15
Aterm*boldFont: -misc-fixed-medium-r-normal-*-13-*-*-*-c-*-iso8859-15
Aterm*transpscrollbar: true
Aterm*geometry: 110x30
Aterm*saveLines: 6000
Aterm*iconName: /home/mikeg/pics/mikeicons/16x16/apps/xeyes

3. run aterm.

2nd problem:
1. run: aterm -fg gray
2. use .Xdefaults above
3. hilight text

Actual Results:  
The foreground setting is not applied as shown in the bad screen shots above.

Expected Results:  
The colors should look as they do in the good screen shots shown above.

Here is my emerge info,... but like I said above I also compiled using lower CFLAGS


Portage 2.0.51-r14 (default-linux/x86/2004.0, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.9-nitro4 i686)
=================================================================
System uname: 2.6.9-nitro4 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jan 18 2005, 00:25:20)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r5
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.4.3-r4, 1.5.2-r7
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe -march=pentium4 -fomit-frame-pointer -ffast-math -mfpmath=sse
-fprefetch-loop-arrays -fforce-addr -falign-functions=8 -funroll-loops
-frerun-cse-after-loop -frerun-loop-opt -ftracer -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -pipe -march=pentium4 -fomit-frame-pointer -ffast-math
-mfpmath=sse -fprefetch-loop-arrays -fforce-addr -falign-functions=8
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -ftracer
-momit-leaf-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acl alsa apm arts avi berkdb bitmap-fonts cdr crypt cups encode esd
f77 fam flac font-server foomaticdb fortran gdbm gif gpm gtk2 guile imagemagick
imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql
ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline ruby sdl slang spell sse ssl svga tcltk tcpd tiff truetype
truetype-fonts type1-fonts xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET
Comment 1 Michal Januszewski (RETIRED) gentoo-dev 2005-02-06 13:40:36 UTC
Please upgrade to 0.4.2-r12 and try enabling/disabling the xgetdefault USE flag.
Comment 2 Mike Gualtieri 2005-02-06 15:52:22 UTC
I just tried the upgrade to r12 as you suggested, but I still get the same problem.  It would respect .Xdefaults before, just not the foreground setting.  When -fg is specified on the command line, I get the wierd highlighting shown in the screenshots.  I downgraded to r9 again and everything is normal.
Comment 3 Michal Januszewski (RETIRED) gentoo-dev 2005-02-06 17:10:26 UTC
Have you tried -r12 with 'xgetdefault' *disabled*?
Comment 4 Mike Gualtieri 2005-02-06 19:24:41 UTC
Ohh sorry, I didn't see you said enabled AND disabled before.  I just tried it with xgetdefault disabled and it works great!

Thanks for your help!