Talk:Menucolors

From NetHackWiki
Revision as of 21:55, 12 May 2011 by Bhaak (talk | contribs) (Weird menucolors problem on Ubuntu GNU/Linux)
Jump to navigation Jump to search

What the heck is "globbing"? --ZeroOne 06:13, 20 August 2006 (UTC)

Globbing is what most shells support. You can use things like "*.txt" to match "schedule.txt", "fun_stuff.txt", and so on. * matches any number of characters (including 0), ? matches exactly one character. --Eidolos 06:15, 20 August 2006 (UTC)

If anyone is interested, I compiled a version of nethack-3.4.3 with both menucolors and autopick_exceptions for windows. The windows binary of menucolors doesn't have autopickup_exceptions which I can't live without anymore. Addps4cat 13:11, 7 September 2007 (UTC)

I'd be interested in that.... --Snicker 12:41, 11 September 2007 (UTC)
NetHack w/ Color and autopickup exceptions.Addps4cat 01:00, 13 September 2007 (UTC)
Thanks!!! --170.189.193.3 16:54, 14 September 2007 (UTC)

Weird menucolors problem on Ubuntu GNU/Linux

Is anyone else having an odd problem where some menucolors don't work? I simply copied Eidolos' file, and as far as I can tell, only the options with parentheses in them don't work, e.g.:

MENUCOLOR=" uncursed"=white

works fine, but

MENUCOLOR=" uncursed| UC?($| )"=white

doesn't.

--Nightpenguin 21:28, 11 May 2011 (UTC)

Guessing, off the top of my hat: Gnu and Posix regular expressions differ in whether parentheses need to be escaped, and NAO switched regexp libraries at some point. Did you check your linker options match your config? --Tjr 10:39, 12 May 2011 (UTC)
I'm not quite sure what you're saying, but escaping parentheses with \ doesn't work either. --Nightpenguin 21:12, 12 May 2011 (UTC)
It's a bit more complicated. 1. There are no different regexp libraries. Glibc provides both GNU and POSIX regexp so you can't really determine which is used by looking at the libraries a binary is using. 2. GNU and POSIX regular expressions don't differ in how they need escaping parentheses but basic and extended (GNU|POSIX) regexp do differ. See this page especially the table with "Quantifiers" and look at the differences between "POSIX BRE", "POSIX ERE", "GNU BRE", and "GNU ERE".
Now the real difference is that NAO has using of the POSIX extended regexps hardcoded while the standard menucolors patch uses GNU basic regexps by default (even though glibc provides support for GNU extended regexps). --Bhaak 21:55, 12 May 2011 (UTC)