Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26897 - nano 1.2.2 colors are messed up when compiling with slang 1.4.9
Summary: nano 1.2.2 colors are messed up when compiling with slang 1.4.9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-18 23:14 UTC by Joseph Nievelt
Modified: 2004-04-16 22:03 UTC (History)
1 user (show)

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 Joseph Nievelt 2003-08-18 23:14:10 UTC
For the editor part, the text would be grey on black instead of bright white on
black.  For the shortcut/header parts, the text would _blink_ red on a grey
background.  This is without any special syntax highlighting in the nanorc file.
 I'm not sure if the problem lies with nano or slang, but nano seems to work
perfectly when using ncurses instead of slang, and in any case they don't seem
to get along.

Reproducible: Always
Steps to Reproduce:
1. ACCEPT_KEYWORDS="~x86" USE="slang" emerge nano
2. nano
3. profit

Actual Results:  
The editor works fine, but the colors are off, as described.

Expected Results:  
The text should be white on black (center) and the shortcuts/header should be
black on white.

Portage 2.0.49_pre18 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test1)
=================================================================
System uname: 2.6.0-test1 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="3dnow apm cups encode foomaticdb libg++ mad mikmod quicktime spell xv
gtkhtml gdbm berkdb tetex bonobo svga guile tcpd pam imlib gtk motif X kde
-gnome -gnome2 -slang nls aalib arts avi cdr crypt dvd esd gif gpm icc java jpeg
ldap libwww memlimit mmx mozilla mpeg mpi ncurses oav oggvorbis opengl oss
pdflib perl png python qt readline samba sdl sse ssl truetype usb xml xml2 xmms
zlib x86 ~x86 -alsa tcltk"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

I added the -slang (and nls) after discovering this problem.  slang and nls are
in the make.defaults file.
Comment 1 Genady Okrain 2003-08-19 11:54:40 UTC
I have the same problem!
Comment 2 SpanKY gentoo-dev 2003-08-19 15:32:23 UTC
alright, slang sucks greatly compared to ncurses, so i've just disabled support for 
it in the ebuild :) 
Comment 3 Joseph Nievelt 2003-08-19 22:32:48 UTC
As a compromise, how about not quite removing slang support, but defaulting to ncurses instead of slang?  Ie when I have both set, use --without-slang.
Comment 4 SpanKY gentoo-dev 2003-08-20 20:22:24 UTC
note: i hate slang :) 
Comment 5 SpanKY gentoo-dev 2003-08-20 23:14:15 UTC
ok it is now like this:

[ `use ncurses` ] || myconf="${myconf} `use_with slang`"

should satisfy everyone i think :)
Comment 6 Zhen Lin 2004-04-16 21:59:29 UTC
Erm, IUSE does not mention ncurses.
Comment 7 SpanKY gentoo-dev 2004-04-16 22:03:47 UTC
ncurses is now in IUSE