On Fri, 17 Mar 2000, Henry Nelson wrote:
> > Anyway, the behaviour of lynx/slang and lynx/ncurses are different in
> > respect to colors 4 and 5. So, tell me which is the correct one.
>
> Neither is correct, and neither is wrong. I would _prefer_ that Lynx
> continue to underline in addition to specified color. I have my colors set
> in lynx.cfg to take this into consideration. I also still use a PC/telnet
> combination that cannot do background colors at all, and would like to have
> the underlining to remain for that situation in particular.
I've always found underline very confusing, especially when you have (in
French, Portuguese or Spanish) accented letters below an underlined line.
That's why I like colors in lynx. My terminal emulator can't change
background colors either. I use this color setting in .lynx.cfg and it works
very well:
COLOR:0:lightgray:black
COLOR:1:cyan:black
COLOR:2:brightred:black
COLOR:3:magenta:black
COLOR:4:green:black
COLOR:5:brightblue:black
COLOR:6:brown:black
COLOR:7:brightmagenta:black
By the way, thanks again. Besides getting rid of the underlines with the
changes you pointed me, I've got an extra bonus: lynx/slang became slightly
lighter and faster on the screen.
Ismael
--
________________________________________________________________
| |
| ISMAEL CORDEIRO | mailto:[EMAIL PROTECTED] |
| Production sound mixer | http://ismael.cordeiro.com/ |
| Montr�al - Qu�bec - Canada | ftp://ftp.pubnix.net/users/ismael |
|________________________________________________________________|
.h1 External Programs
.h2 EXTERNAL
# External application support. This feature allows Lynx to pass a given
# URL to an external program. It was written for three reasons.
#
# 1) To overcome the deficiency of Lynx_386 not supporting ftp and news.
# External programs can be used instead by passing the URL.
#
# 2) To allow for background transfers in multitasking systems.
# I use wget for http and ftp transfers via the external command.
#
# 3) To allow for new URLs to be used through Lynx.
# URLs can be made up such as mymail: to spawn desired applications
# via the external command.
#
# Restrictions can be imposed using -restrictions=externals at the Lynx
# command line. This will disallow all EXTERNAL lines in lynx.cfg that
# end in FALSE. TRUE lines will still function.
#
# The lynx.cfg line is as follows:
#
# EXTERNAL:<url>:<command> %s:<norestriction>
#
# <url> Any given URL. This can be normal ones like ftp or http or it
# can be one made up like mymail.
#
# <command> The command to run with %s being the URL that will be passed.
# In Linux I use "wget -q %s &" (no quotes) to spawn a copy of wget for
# downloading http and ftp files in the background. In Win95 I use
# "start ncftp %s" to spawn ncftp in a new window.
#
# <norestriction> This complements the -restrictions=externals feature to allow
# for certain externals to be enabled while restricting others. TRUE means
# a command will still function while Lynx is restricted. WB
#
# For invoking the command use the EXTERN key. By default it is mapped
# to '.' (if the feature is enabled), see the KEYMAP section above.
#
EXTERNAL:ftp:wget -q %s &:TRUE
EXTERNAL:http:w3m %s:TRUE
EXTERNAL:mailto:pine -url %s:TRUE
#EXTERNAL:http:wget -q %s &:TRUE
#EXTERNAL:ftp:curl -Os %s &:TRUE
#EXTERNAL:http:curl -Os %s &:TRUE
#EXTERNAL:ftp:snarf -aq %s &:TRUE
#EXTERNAL:http:snarf -aq %s &:TRUE
.h1 Internal Behavior
.h2 RULE
# CERN-style rules, EXPERIMENTAL - URL-specific rules
#
# A CERN-style rules file can be given with RULESFILE. Use the system's
# native format for filenames, on Unix '~' is also recognized. If a filename
# is given, the file must exist.
#
# Single CERN-style rules can be specified with RULES.
#
# Both options can be repeated, rules accumulate in the order
# given, they will be applied in first-to-last order. See cernrules.txt
# in the samples subdirectory for further explanation.
#
# Examples:
# RULESFILE:/etc/lynx/cernrules
# RULE:Fail gopher:* # reject by scheme
# RULE:Pass finger://*@localhost/ # allow this,
# RULE:Fail finger:* # but not others
# RULE:Redirect http://old.server/* http://new.server/*
.h1 Appearance
.h2 HTMLSRC_ATTRNAME_XFORM
.h2 HTMLSRC_TAGNAME_XFORM
.h2 PRETTYSRC_SPEC
# Pretty source view settings. These settings are in effect when -prettysrc
# is specified.
# The following lexical elements (lexemes) are recognized:
# comment, tag, attribute, attribute value, generalized angle brackets (
# '<' '>' '</' ), entity, hyperlink destination, entire file, bad sequence,
# bad tag, bad attribute, sgml special.
# The following group of option tells which styles will surround each
# lexeme. The syntax of option in this group is:
#PRETTYSRC_SPEC:<LEXEMENAME>:<TAGSPEC>:<TAGSPEC>
# The first <TAGSPEC> specifies what tags will precede lexemes of that class
# in the internal html markup. The second - what will be placed (internally)
# after it.
# TAGSPEC has the following syntax:
# <TAGSPEC>:= [ (<TAGOPEN> | <TAGCLOSE>) <SPACE>+ ]*
# <TAGOPEN>:= tagname[.classname]
# <TAGCLOSE>:= !tagname
#
# The following table gives correspondence between lexeme and lexeme name
.nf
# Lexeme LEXEMENAME FURTHER EXPLANATION
# =========================================================
# comment COMM
# tag TAG recognized tag name only
# attribute ATTRIB
# attribute value ATTRVAL
# generalized brackets ABRACKET < > </
# entity ENTITY
# hyperlink destination HREF
# entire file ENTIRE
# bad sequence BADSEQ bad entity or invalid construct at text
# level.
# bad tag BADTAG Unrecognized construct in generalized
# brackets.
# bad attribute BADATTR The name of the attribute unknown to lynx
# of the tag known to lynx. (i.e.,
# attributes of unknown tags will have
# markup of ATTRIB)
# sgml special SGMLSPECIAL doctype, sgmlelt, sgmlele,
# sgmlattlist, marked section, identifier
.fi
#
# Notes:
#
# 1) The markup for HTML_ENTIRE will be emitted only once - it will surround
# entire file source.
#
# 2) The tagnames specified by TAGSPEC should be valid html tag names.
#
# 3) If the tag/class combination given by TAGOPEN is not assigned a color
# style in lss file (for lynx compiled with lss support), that tag/class
# combination will be emitted anyway during internal html markup. Such
# combinations will be also reported to the trace log.
#
# 4) Lexeme 'tag' means tag name only
#
# 5) Angle brackets of html specials won't be surrounded by markup for ABRACKET
#
.ex
# PRETTYSRC_SPEC:COMM:B I:!I !B
# HTML comments will be surrounded by <b><i> and </i></b> in the
# internal html markup
.ex
# PRETTYSRC_SPEC:ATTRVAL: span.attrval : !span
# Values of the attributes will be surrounded by the
# <SPAN class=attrval> </SPAN>
.ex
# PRETTYSRC_SPEC:HREF::
# No special html markup will surround hyperlink destinations (
# this means that only default color style for hrefs will be applied
# to them)
#
# For lynx compiled with lss support, the following settings are the default:
#PRETTYSRC_SPEC:COMM:span.htmlsrc_comment:!span
#PRETTYSRC_SPEC:TAG:span.htmlsrc_tag:!span
#PRETTYSRC_SPEC:ATTRIB:span.htmlsrc_attrib:!span
#PRETTYSRC_SPEC:ATTRVAL:span.htmlsrc_attrval:!span
#PRETTYSRC_SPEC:ABRACKET:span.htmlsrc_abracket:!span
#PRETTYSRC_SPEC:ENTITY:span.htmlsrc_entity:!span
#PRETTYSRC_SPEC:HREF:span.htmlsrc_href:!span
#PRETTYSRC_SPEC:ENTIRE:span.htmlsrc_entire:!span
#PRETTYSRC_SPEC:BADSEQ:span.htmlsrc_badseq:!span
#PRETTYSRC_SPEC:BADTAG:span.htmlsrc_badtag:!span
#PRETTYSRC_SPEC:BADATTR:span.htmlsrc_badattr:!span
#PRETTYSRC_SPEC:SGMLSPECIAL:span.htmlsrc_sgmlspecial:!span
# the styles corresponding to them are present in sample .lss file.
# For lynx compiled without lss support, the following settings are the default:
#PRETTYSRC_SPEC:COMM:b:!b
#PRETTYSRC_SPEC:TAG:b:!b
#PRETTYSRC_SPEC:ATTRIB:b:!b
#PRETTYSRC_SPEC:ATTRVAL::
#PRETTYSRC_SPEC:ABRACKET:b:!b
#PRETTYSRC_SPEC:ENTITY:b:!b
#PRETTYSRC_SPEC:HREF::
#PRETTYSRC_SPEC:ENTIRE::
#PRETTYSRC_SPEC:BADSEQ:b:!b
#PRETTYSRC_SPEC:BADTAG::
#PRETTYSRC_SPEC:BADATTR::
#PRETTYSRC_SPEC:SGMLSPECIAL:b:!b
#
# Other source-view related options:
#
# Options HTMLSRC_TAGNAME_XFORM and HTMLSRC_ATTRNAME_XFORM control the way the
# names of tags and names of attributes are transformed correspondingly.
# Possible values: 0 - lowercase, 1 - leave as is, 2 - uppercase.
#HTMLSRC_TAGNAME_XFORM:2
#HTMLSRC_ATTRNAME_XFORM:2
.h2 PRETTYSRC_VIEW_NO_ANCHOR_NUMBERING
# PRETTYSRC_VIEW_NO_ANCHOR_NUMBERING - pretty source view setting
# If "keypad mode" in 'O'ptions screen is "Links are numbered" or
# "Links and form fields are numbered", and PRETTYSRC_VIEW_NO_ANCHOR_NUMBERING is
# TRUE, then links won't be numbered in psrc view and will be numbered
# otherwise. Set this setting to TRUE if you prefer numbered links, but wish
# to get valid HTML source when printing or mailing when in psrc view.
# Default is FALSE.
#PRETTYSRC_VIEW_NO_ANCHOR_NUMBERING:FALSE
.h1 HTML Parsing
.h2 FORCE_EMPTY_HREFLESS_A
# FORCE_EMPTY_HREFLESS_A - HTML parsing
# This option mirrors command-line option with the same name. Default is
# FALSE. If true, then any 'A' element without HREF will be closed
# immediately. This is useful when viewing documentation produced by broken
# translator that doesn't emit balanced A elements. If lynx was compiled with
# color styles, setting this option to TRUE will make lynx screen much more
# reasonable (otherwise all text will probably have color corresponding to the
# A element).
#
#FORCE_EMPTY_HREFLESS_A:FALSE
.h1 Appearance
.h2 JUSTIFY
# JUSTIFY - Appearance
# This option mirrors command-line option with same name. Default is TRUE. If
# true, most of text (except headers and like this) will be justified. This
# has no influence on CJK text rendering.
#
# This option is only available if Lynx was compiled with EXP_JUSTIFY_ELTS.
#
#JUSTIFY:TRUE
.h2 JUSTIFY_MAX_VOID_PERCENT
# JUSTIFY_MAX_VOID_PERCENT - Appearance
# This option controls the maximum allowed value for ratio (in percents) of
# 'the number of spaces to spread across the line to justify it' to
# 'max line size for current style and nesting' when justification is allowed.
# When that ratio exceeds the value specified, that particular line won't be
# justified. I.e. the value 28 for this setting will mean maximum value for
# that ratio is 0.28.
#
#JUSTIFY_MAX_VOID_PERCENT:35
.h1 Interaction
.h2 TEXTFIELDS_NEED_ACTIVATION
# If TEXTFIELDS_NEED_ACTIVATION is set to TRUE, and lynx was compiled with
# TEXTFIELDS_MAY_NEED_ACTIVATION defined, then text input form fields need
# to be activated (by pressing the Enter key or similar) before the user
# can enter or modify input. By default, input fields become automatically
# activated when selected. Requiring explicit activation can be desired for
# users who use alphanumeric keys for navigation (or other keys that have
# special meaning in the line editor - ' ', 'b', INS, DEL, etc), and don't
# want to 'get stuck' in form fields. Instead of setting the option here,
# explicit activation can also be requested with the -tna command line
# option.
#
#TEXTFIELDS_NEED_ACTIVATION:FALSE
.h2 LEFTARROW_IN_TEXTFIELD_PROMPT
# LEFTARROW_IN_TEXTFIELD_PROMPT
# This option controls what happens when a Left Arrow key is pressed while
# in the first position of an active text input field. By default, Lynx
# asks for confirmation ("Do you want to go back to the previous document?")
# only if the contents of the fields have been changed since entering it.
# If set to TRUE, the confirmation prompt is always issued.
#
#LEFTARROW_IN_TEXTFIELD_PROMPT:FALSE
.h1 Internal Behavior
.h2 CONNECT_TIMEOUT
# Specifies (in seconds) connect timeout. Not available under DOS (use
# sockdelay parameter of wattcp). Default value is rather huge.
CONNECT_TIMEOUT:60
.h2 FTP_PASSIVE
# Set FTP_PASSIVE to TRUE if you want to use passive mode ftp transfers.
# You might have to do this if you're behind a restrictive firewall.
#FTP_PASSIVE:FALSE