On Fri, Mar 03, 2000 at 04:04:28PM +0000, BERNARD SCHWEITZER wrote:
>
> A girl friend of mine wish to see images that are displayed on some
> sites. How could LYNX do this? If an external program is required,
> I've one.
Bernard, I know you asked this over a week ago, but, just in case you
haven't found an acceptable solution, this might help. First of
all, you don't say what operating system you're using, and that will
make a difference, but only in the details. The general idea is still
the same.
What you need to do is set define viewers in lynx.cfg for the different
graphics types. I run Linux, and this is what I have in my lynx.cfg:
VIEWER:image/jpeg:openvt -sw -- zgv %s &:NON_XWINDOWS
VIEWER:image/jpe:openvt -sw -- zgv %s &:NON_XWINDOWS
VIEWER:image/jpg:openvt -sw -- zgv %s &:NON_XWINDOWS
VIEWER:image/jp:openvt -sw -- zgv %s &:NON_XWINDOWS
VIEWER:image/gif:openvt -sw -- zgv %s &:NON_XWINDOWS
VIEWER:image/png:openvt -sw -- zgv %s &:NON_XWINDOWS
VIEWER:image/bmp:openvt -sw -- zgv %s &:NON_XWINDOWS
The 'openvt -sw --' part can be left out if you want. Also, the '&'
should be left out if you're not using openvt. The program I use to
view graphics is zgv. The 'openvt -sw --' opens another virtual console
to view the graphic in, which is handy because it allows me to switch
back and forth between the graphic and the text in case the graphic is
a figure that is being referred to in the text (like a chart or graph).
The '&' at the end allows me to continue using lynx without exiting the
viewer. The -sw tells openvt to switch to the console that zgv is
started in, wait for zgv to end and then switch back. The switching
back part doesn't work properly in the openvt that comes with the current
kbd package (in most distributions), but I have a patch I can email you
to fix this if you're interested. In some older Linux distributions,
openvt is called open, and may not have the bug.
If you're not running Linux, or not using zgv, you can replace the
whole 'openvt -sw -- zgv %s &' part with whatever program you're using
to view graphics. I'm not sure what, if any, changes have to be made
to this if you're running Windows. By the way, the %s will be replaced
by the program name of the graphic file, which is whatever lynx decides
to call it.
Another way to do this is to download the file and view it from the
download menu. To do this, you'll have to add your program to lynx.cfg
in the DOWNLOADERs. I do it like this:
DOWNLOADER:View with zgv:openvt -sw -- zgv %s &:TRUE
This has the advantage that after viewing, you can decide to save the
graphic to a local file. The first method doesn't allow this. I use
both.
Chuck