menucolors patch doesn't work with .nethackrc

Bug #539100 reported by Ilja Sidoroff
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nethack (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Ubuntu 9.10 ships nethack with menucolors patch, which works nicely if you don't have .nethackrc. If, however, you create your own .nethackrc with options, menucolors don't work anymore, even if menucolors option is not set/unset in the .nethackrc file.

This might be because of menucolors default to nothing when .nethackrc is present. Anyway, even then following .nethackrc doesn't produce coloured menu:

OPTIONS=noautopickup,showexp,menucolors,hpmon
MENUCOLOR="* blessed *"=green
MENUCOLOR="* holy *"=green
MENUCOLOR="* cursed *"=red
MENUCOLOR="* unholy *"=red
MENUCOLOR="* cursed * (being worn)"=orange&underline

Revision history for this message
James Cowgill (jcowgill) wrote :

Your nethackrc file is invalid. The menucolors patch accepts regexes so you need to use ".*" instead of just "*". In 3.6.0 nethack now warns you when you try to use an invalid regex, but it just silently failed in 3.4.3.

Try this in your nethackrc and it should work:

OPTIONS=noautopickup,showexp,menucolors,hpmon
MENUCOLOR=" blessed "=green
MENUCOLOR=" holy "=green
MENUCOLOR=" uncursed "=yellow
MENUCOLOR=" cursed "=red
MENUCOLOR=" unholy "=red
MENUCOLOR=" cursed .* (being worn)"=orange&underline

Changed in nethack (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for nethack (Ubuntu) because there has been no activity for 60 days.]

Changed in nethack (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.