Created attachment 424414 [details] emerge --info =games-roguelike/nethack-3.6.0-r1 > emerge.info Hello, I installed the x11 port of nethack-3.6.0 and I'm using the non-tiled version. Although the gui is colored and I can change the gui colors by editing the /etc/X11/app-defaults/NetHack file, the ascii gameboard keeps monochrome. Only the NetHack*map*background and NetHack*map*foreground have an effect of gameboard colors. Of course I have enabled the color option in my .nethackrc and also checked it ingame via shift-O. I've emigrated from archlinux so I don't know if the color option worked in previous package versions.
I'll have a look. I've basically rewritten the whole ebuild from scratch for version 3.6.0, so it'd be interesting if 3.4.3 has the same problems. The 3.4.3 ebuild are still in the tree (luckily -- I was going to remove them next weekend), so trying it is simply a matter of "emerge ~games-roguelike/nethack-3.4.3".
(In reply to Luis Ressel from comment #1) > I'll have a look. > > I've basically rewritten the whole ebuild from scratch for version 3.6.0, so > it'd be interesting if 3.4.3 has the same problems. The 3.4.3 ebuild are > still in the tree (luckily -- I was going to remove them next weekend), so > trying it is simply a matter of "emerge ~games-roguelike/nethack-3.4.3". The 3.4.3 x11 build seems to ignore the !tiled_map option.
nor does the 3.4.3 build support the ascii_map option.
I've confirmed the issue. Nethack's non-tiled X11 mode refuses to colorize the dungeon on my box, too. I haven't found out how to fix it yet. The issue seems quite weird; nethack's other x11 windows are colorized fine, after all. Perhaps it's an upstream bug? I'll have another look this weekend.
I've dug through the relevant code, but I couldn't find out what causes this. It's an upstream regression; everything worked fine in 3.4.3. I'll report this bug to upstream tomorrow. Until it's fixed, I'd recommend to use the tty interface; it's much better supported both by upstream and me, and the non-tiled x11 interface doesn't offer many advantages over the tty interface anyway.
Reported to upstream. Unfortunately they use a contact form for bug reports, not a public bugtracker. I'll update this bug if I get an answer from them.
Created attachment 425022 [details, diff] patch winmap.c
Created attachment 425088 [details, diff] patch that fixes color AND hilite_pile
Thanks for your patches! Upstream has also fixed the issue in the meantime, so I'll apply their patch instead. I've submitted the updated games-roguelike/nethack-3.6.0-r3 ebuild to the proxy-maint team (https://github.com/gentoo/gentoo/pull/842). They're usually quite fast, so it'll probably get merged into the gentoo tree soon.
commit 69f0831c1243d1b889f38a2d5261420664ee59c9 Author: Luis Ressel <aranea@aixah.de> Date: Fri Feb 12 15:50:47 2016 +0100 games-roguelike/nethack: Fix map colors in x11 interface Gentoo-Bug: 573598