FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 08-09-2008, 12:44 AM
 
Default lynx upgrade issue?

Thomas Dickey <dickey@radix.net> wrote:
TD> On Tue, Aug 05, 2008 at 11:10:17PM +0200, i'll teach you to turn away. wrote:
TD> If lynx thinks there's no color-style file, it'll construct a style from
TD> the "COLOR" settings that mimics the non-color-style. (It's done that
TD> way intentionally, to let most of the people who want the old style to
TD> use it).

TD> The original text (removing the "> TD> " for instance) is a shell script
TD> named "oldlynx" in the samples directory of lynx, e.g.,

TD> The script constructs a temporary copy of lynx.cfg, overrides a few
TD> settings to produce a screen that looks much like the non-color-style
TD> lynx.

TD> I named it "oldlynx" to make it very simple; with some minor tinkering it
TD> could be named "lynx" and told to run "lynx.cur", for example.

thomas, i know you're awesome. & i know you're trying really hard
to help me. for some reason, my brain is broken on this. i do not
understand how you want me to apply the oldlynx script into the current
config, or where to point to it, or... anything really. am i just supposed
to run the oldlynx script with root & let it ...do what it's going to do?

lish
crank@got.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-12-2008, 02:06 PM
Thomas Dickey
 
Default lynx upgrade issue?

On Sat, Aug 09, 2008 at 02:10:07AM +0200, i'll teach you to turn away. wrote:
> Thomas Dickey <dickey@radix.net> wrote:
> TD> On Tue, Aug 05, 2008 at 11:10:17PM +0200, i'll teach you to turn away. wrote:
> TD> If lynx thinks there's no color-style file, it'll construct a style from
> TD> the "COLOR" settings that mimics the non-color-style. (It's done that
> TD> way intentionally, to let most of the people who want the old style to
> TD> use it).
...
> thomas, i know you're awesome. & i know you're trying really hard
> to help me. for some reason, my brain is broken on this. i do not
> understand how you want me to apply the oldlynx script into the current
> config, or where to point to it, or... anything really. am i just supposed
> to run the oldlynx script with root & let it ...do what it's going to do?

You don't have to run it with root: "oldlynx" is a script that calls lynx.
So you could put "oldlynx" in your path and just run it...

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
 
Old 08-12-2008, 06:49 PM
 
Default lynx upgrade issue?

Thomas Dickey <dickey@radix.net> wrote:
TD> On Sat, Aug 09, 2008 at 02:10:07AM +0200, i'll teach you to turn away. wrote:
>> thomas, i know you're awesome. & i know you're trying really hard
>> to help me. for some reason, my brain is broken on this. i do not
TD> You don't have to run it with root: "oldlynx" is a script that calls lynx.
TD> So you could put "oldlynx" in your path and just run it...

hahaah ok, now i feel like a complete tool, 'cause i swear i read
through the script, but i clearly somehow missed this part:

# invoke lynx built with color-style, overriding the color options to use the
# non-color-style scheme -TD

thank you for holding my hand. i officially owe you a favor.

lish
crank@got.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-14-2008, 06:09 AM
 
Default lynx upgrade issue?

Thomas Dickey <dickey@radix.net> wrote:
TD> You don't have to run it with root: "oldlynx" is a script that calls lynx.
TD> So you could put "oldlynx" in your path and just run it...

$ oldlynx
./oldlynx: line 9: 3D/tmp/lynxcfg22579: No such file or directory
./oldlynx: line 13: 3D/tmp/lynxcfg22579: No such file or directory
./oldlynx: line 14: 3D/tmp/lynxcfg22579: No such file or directory

Configuration file "3D3D/tmp/lynxcfg22579" is not available.

question mark goes here! request for more of your time goes here.


lish
crank@got.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-15-2008, 12:44 AM
Thomas Dickey
 
Default lynx upgrade issue?

On Thu, Aug 14, 2008 at 07:30:17AM +0200, i'll teach you to turn away. wrote:
> Thomas Dickey <dickey@radix.net> wrote:
> TD> You don't have to run it with root: "oldlynx" is a script that calls lynx.
> TD> So you could put "oldlynx" in your path and just run it...
>
> $ oldlynx
> ./oldlynx: line 9: 3D/tmp/lynxcfg22579: No such file or directory
> ./oldlynx: line 13: 3D/tmp/lynxcfg22579: No such file or directory
> ./oldlynx: line 14: 3D/tmp/lynxcfg22579: No such file or directory
>
> Configuration file "3D3D/tmp/lynxcfg22579" is not available.

That's mime-encoding (a nuisance to get rid of unless your newsreader
understands the attachments). Here's another try (omitting the signature
which triggered the wrapping):

#!/bin/sh
# invoke lynx built with color-style, overriding the color options to use the
# non-color-style scheme -TD

my_cfg=${TMPDIR:-/tmp}/lynxcfg$$
trap "rm -f $my_cfg" 0 1 2 5 15

rm -f "$my_cfg"
echo "DEFAULT_COLORSff" >>$my_cfg
if test -n "$LYNX_CFG" ; then
echo "include:$LYNX_CFG" >>$my_cfg
fi
echo "COLOR_STYLE:" >>$my_cfg
echo "NESTED_TABLESff" >>$my_cfg

LYNX_CFG=$my_cfg
export LYNX_CFG
unset LYNX_LSS

${LYNX_PROG-lynx} "$@"



--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-17-2008, 08:48 AM
 
Default lynx upgrade issue?

Thomas Dickey <dickey@radix.net> wrote:
TD> On Thu, Aug 14, 2008 at 07:30:17AM +0200, i'll teach you to turn away. wrote:
>> Configuration file "3D3D/tmp/lynxcfg22579" is not available.
TD> That's mime-encoding (a nuisance to get rid of unless your newsreader
TD> understands the attachments). Here's another try (omitting the signature
TD> which triggered the wrapping):

gotcha. ok, so it loads lynx now without incident, but it's still
using default oldlynx colors, which is at least a step better than default
NEWlynx colors. i have my colors in ~/.lynx/colors as someone else had
mentioned in this thread, but no matter where in /etc/lynx* i copy my
COLOR:0et.al stuff, it doesn't seem to affect what colors it actually
uses. so what's next? please & thanks.

lish
crank@got.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-18-2008, 05:23 PM
David Jardine
 
Default lynx upgrade issue?

On Sun, Aug 17, 2008 at 07:48:23AM +0000, i'll teach you to turn away. wrote:
> Thomas Dickey <dickey@radix.net> wrote:
> TD> On Thu, Aug 14, 2008 at 07:30:17AM +0200, i'll teach you to turn away. wrote:
> >> Configuration file "3D3D/tmp/lynxcfg22579" is not available.
> TD> That's mime-encoding (a nuisance to get rid of unless your newsreader
> TD> understands the attachments). Here's another try (omitting the signature
> TD> which triggered the wrapping):
>
> gotcha. ok, so it loads lynx now without incident, but it's still
> using default oldlynx colors, which is at least a step better than default
> NEWlynx colors. i have my colors in ~/.lynx/colors as someone else had
> mentioned in this thread, but no matter where in /etc/lynx* i copy my
> COLOR:0et.al stuff, it doesn't seem to affect what colors it actually
> uses. so what's next? please & thanks.
>
Have you looked at /etc/lynx-cur/lynx.lss ?

> lish
> crank@got.net
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-18-2008, 08:25 PM
 
Default lynx upgrade issue?

David Jardine <david@jardine.de> wrote:
DJ> On Sun, Aug 17, 2008 at 07:48:23AM +0000, i'll teach you to turn away. wrote:
>> gotcha. ok, so it loads lynx now without incident, but it's still
>> using default oldlynx colors, which is at least a step better than default
DJ> Have you looked at /etc/lynx-cur/lynx.lss ?

yes, that's what i was editing at the very beginning of this
thread.

lish
crank@got.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-20-2008, 08:12 PM
Thomas Dickey
 
Default lynx upgrade issue?

On Mon, Aug 18, 2008 at 01:50:19PM +0200, i'll teach you to turn away. wrote:
> Thomas Dickey <dickey@radix.net> wrote:
> TD> On Thu, Aug 14, 2008 at 07:30:17AM +0200, i'll teach you to turn away. wrote:
> >> Configuration file "3D3D/tmp/lynxcfg22579" is not available.
> TD> That's mime-encoding (a nuisance to get rid of unless your newsreader
> TD> understands the attachments). Here's another try (omitting the signature
> TD> which triggered the wrapping):
>
> gotcha. ok, so it loads lynx now without incident, but it's still
> using default oldlynx colors, which is at least a step better than default
> NEWlynx colors. i have my colors in ~/.lynx/colors as someone else had
> mentioned in this thread, but no matter where in /etc/lynx* i copy my
> COLOR:0et.al stuff, it doesn't seem to affect what colors it actually
> uses. so what's next? please & thanks.

Some people would modify the file under /etc - but that's not necessary.
I set $LYNX_CFG to point to my own file, and put at the top

include:lynx.cfg

and then in that file, modify the color settings. For example:

COLOR:6:brightblue:green

The advantage to doing it that way, is less tinkering with installed files.
To see what lynx.cfg file is installed, I'd look at dpkg output (-l to
find the package name, -L to look at the list of files). As someone
notes, lynx-cur installs /etc/lynx-cur/lynx.cfg

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 08-22-2008, 12:53 AM
 
Default lynx upgrade issue?

Thomas Dickey <dickey@radix.net> wrote:
TD> On Mon, Aug 18, 2008 at 01:50:19PM +0200, i'll teach you to turn away. wrote:
>> gotcha. ok, so it loads lynx now without incident, but it's still
>> using default oldlynx colors, which is at least a step better than default
TD> Some people would modify the file under /etc - but that's not necessary.
TD> I set $LYNX_CFG to point to my own file, and put at the top
TD> include:lynx.cfg
TD> and then in that file, modify the color settings. For example:
TD> COLOR:6:brightblue:green

ok. so now i can run the oldlynx script & not get the default
colors... but it's still showing the new colors. it's ignoring my
COLOR:6:whatever stuff entirely. here's what i did:

in ~/.bash_profile, added:
export LYNX_CFG=/home/crank/.lynx/lynx.cfg

in ~/.lynx/lynx.cfg:
include:/etc/lynx-cur/lynx.cfg
COLOR:0:lightgray:black
COLOR:1:cyan:black
COLOR:2:red:black
COLOR:3:green:black
COLOR:4:white:black
COLOR:5:white:black
COLOR:6:brightcyan:black
COLOR:7:black:lightgray

...where'd i go wrong?

thanks, my coding hero.

lish
crank@got.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 10:22 PM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org