Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ncar!noao!arizona!cjeffery From: cjeffery@cs.arizona.edu (Clinton Jeffery) Newsgroups: comp.sources.games.bugs Subject: Re: Nethack in colour with System V r3.2 curses Message-ID: <365@caslon.cs.arizona.edu> Date: 3 Aug 90 22:46:14 GMT References: <1990Aug3.175507.991@cti-software.nl> Organization: U of Arizona CS Dept, Tucson Lines: 31 From article <1990Aug3.175507.991@cti-software.nl>, by (Pim Zandbergen): > I have just finished compiling the latest and greatest > release of nethack on ISC UNIX (System V/386 release 3.2). > Everything runs just fine, but it lacks the colours that > were promised when defining TEXTCOLOR in include/unixconf.h. > Any clue anybody? Not that I ever have time to play games, but I just solved this problem under ESIX. I had to do the following: 1) change the ANSI color escape sequences in termcap.c to specify the color first, and then the intensity second. Note that Nethack is incredibly "poortable" and therefore finding the hunk of code which UNIX uses is nontrivial. Anyhow, it does them with lines similar to: sprintf(hilites[c+BRIGHT],"\033[1;3%dm",c); but you need something like sprintf(hilites[c+BRIGHT],"\033[3%dm\033[1m",c); 2) Either set the "standout" option, or remove some checks in pri.c which specify no colors unless flags.standout is on. Perhaps this doesn't matter. 1) is the main thing. And gee, the money is really more satisfying in bright yellow than it is in drab white... Of course, I don't know if this same trick works under ISC or SCO. -- | Clint Jeffery, U. of Arizona Dept. of Computer Science | cjeffery@cs.arizona.edu -or- {noao allegra}!arizona!cjeffery --