On Wed, Dec 11, 2002 at 06:59:20PM +0100, Robert Land wrote: > On Tue, Dec 10, 2002 at 08:38:05PM +0000, Pigeon wrote: > > On Tue, Dec 10, 2002 at 06:49:04PM +0100, Robert Land wrote: > > > How can I persuade lynx to 'forget' it's capabilities underlining > > > fonts? Everything thats <b> or even <em> is rendered underlined > > > and makes reading regular expressions in html docs very hard if > > > they have <b> attributes. > > > > sed -e 's/<B>//g' -e 's/<\/B>//g' -e 's/<EM>//g' -e 's/<\/EM//g' < dodgydoc.html > >/tmp/cleandoc.html > > lynx /tmp/cleandoc.html > > Oh, come on.... > Didn't you realize I'm a newbee? > I am s t a r t i n g to dig through regular expressions - > and now I get this!
That's a Pigeonism, based on the thought of "bollocks to all the fancy stuff". What it does is create a file /tmp/cleandoc.html, based on dodgydoc.html but with all the <B>, </B>, <EM> and </EM> removed. sed - stream editor -e - next argument is a string describing some action s - substitute / - this... <B> - ...string here... / - ...for this one... / - ...oh, it wasn't there, use a null string g - do this for every <B> in the line > > > Actually I would like to change the black background to default > > > just like mutt enables but lynx.cfg seems to be a bit stubborn > > > here. Are all these settings really compiled into the browser? > > > > I like black backgrounds... from my lynx.cfg: > > > > > > # COLORS (only available if compiled with SVr4 curses or slang) > > COLOR:0:lightgray:black > > COLOR:1:cyan:black > > COLOR:2:yellow:blue > > COLOR:3:green:black > > COLOR:4:magenta:black > > COLOR:5:cyan:black > > COLOR:6:red:black > > COLOR:7:magenta:cyan > > > > > > Pigeon > > Did you try out another background for COLOR:0? > I have gray instead of black but it is overridden! > > > Robert Just tried blue, and it works. I'm using /etc/lynx.cfg to set options globally as I'm the only user and it's easy that way. I've just experimented with creating a ~/lynx.cfg or ~/.lynx.cfg, and lynx doesn't see that unless I use the -cfg option. Which I find odd. Maybe that's what's happening to you? Maybe there's some funny convention about the name of a personal lynx.cfg of which both of us are unaware? Pigeon -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]