lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV colors in lynx 2.6


From: dickey
Subject: Re: LYNX-DEV colors in lynx 2.6
Date: Tue, 21 Jan 1997 10:26:17 -0500 (EST)

> 
> I've been wanting to try the color stuff in lynx 2.6 (whatever
> development version has it implemented).
> I grabbed the sunos.4.1.3 binaries from one of the lynx web pages
> (can't remeber which) and installed it in my home directory.
> (I also grabbed the source, but haven't looked at it.)  Someone said I needed
> slang to get the color stutff working.  I have no idea if the binaries I
> picked up were compiled with slang.  I also am sure I don't have the latest
> development version.  (Where do I get it?)
slang is at space.mit.edu:/pub/davis

You can easily find if your binaries were linked with slang by doing ldd
on the binaries (in case they were dynamically linked) or with strings
(if they were statically linked) - look for some (mixed case) variation of
"slang".

Slang's not documented.  I made a patch for lynx 2.6 using ncurses 4.0 last
week that does the equivalent.  Basically all it's (slang) doing is mapping the
8 combinations of bold/underline/reverse into colors (more than 8, because
backgrounds are treated specially).  So you have to read the source code to
figure out what the mapping is.

> 
> I looked thru lynx.cfg and noticed the color stuff at the end of the file:
> 
> > # COLORS (only available if compiled with slang)
> > # The line must be of the form:
> > # COLOR:INTEGER:FOREGROUND:BACKGROUND
> > ...
> > #COLOR:0:black:white
> > #COLOR:1:blue:white
> > #COLOR:2:yellow:blue
> > #COLOR:3:green:white
> > #COLOR:4:magenta:white
> > #COLOR:5:blue:white
> > #COLOR:6:red:white
> > #COLOR:7:magenta:cyan
> 
> There is no explanation of what the INTEGER means.
> I tried changing the settings and looking at various "colorful" URLs,
> but always got the same colors.
> (I used -cfg on the command line, so I know I'm using the right config file.)
> 
> What I really wanted to do is change reverse video to something that's
> easier to see.
> What are the COLOR defaults supposed to do?
> Am I barking up the wrong tree?
> 
> Suggestions welcome.
> Thanks!
> --le
> ;
> ; To UNSUBSCRIBE:  Send a mail message to address@hidden
> ;                  with "unsubscribe lynx-dev" (without the
> ;                  quotation marks) on a line by itself.
> ;
> 


-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]