home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.linux:23338 rec.games.hack:8035
- Newsgroups: comp.os.linux,rec.games.hack
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!blaze.cs.jhu.edu!circle.cs.jhu.edu!hymowitz
- From: hymowitz@circle.cs.jhu.edu (Hymie!)
- Subject: color hack for linux - trying to fix...
- Message-ID: <1993Jan9.072906.6260@blaze.cs.jhu.edu>
- Sender: news@blaze.cs.jhu.edu (Usenet news system)
- Reply-To: hymowitz@cs.jhu.edu (Hymie!)
- Organization: Creative Sensualities dept, Jacquie's House of Underwear
- Date: Sat, 9 Jan 1993 07:29:06 GMT
- Lines: 40
-
- hello there... i'm not sure which of theset wo groups can help more, so...
-
- i have nethack 3.0i for linux, and i want to get color. i used this
- advice...
-
- >At compile time:
- > 1) #define TEXTCOLOR in include/unixconf.h
- > 2) if you're using TERMINFO, that's it; however, if you're using TERMCAP,
- > then you'll need to modify src/termcap.c. Change the source code at the
- > very last routine so that it reads ``# if 0'' instead of ``# ifdef UNIX''.
- > You need the non-Unix version of function init_hilite() since that Unix
- > version supports TERMINFO only.
- >At run time:
- > 3) enable both "color" and "standout" in NETHACKOPTIONS or with the 'O'
- > command. Neglecting to set "standout" is a fairly common problem.
- >
- > I have no idea whether Linux uses terminfo or termcap or both, so
- >can't advise about step #2, but your Makefile is already choosing one or
- >the other.
- > Pat Rankin, rankin@eql.caltech.edu
-
- it uses termcap.
-
- this worked great, as a start. the problem is there's too /much/ color.
- for example, when it prints a green character, /everything/ is green until
- it hits a blue character, then /everything/ is blue until ...
-
- so i'm hoping to find the color-print routine so i can tell it to print
- a 'no-color' (\033[0m) afterwards. but i don't even know where to begin
- looking. (well, i began with decl.c, pri.c and termcap.c which include the
- color function called hilites, but i'm stuck from there)
-
- can anybody offer insight? thanx in advance.
-
- --hymie
- hymowitz@cs.jhu.edu hymie@jhuvms.bitnet
- -------------------------------------------------------------------------------
- Okay, so ten out of ten for style,
- but minus several million for good thinking, yeah? --Zaphod Beeblebrox
- -------------------------------------------------------------------------------
-