[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Lynx-dev] some customization help
From: |
hsv |
Subject: |
Re: [Lynx-dev] some customization help |
Date: |
Tue, 14 Aug 2012 11:37:44 -0400 |
>>>> 2012/08/14 10:30 +0200, Klaus-Peter Wegge >>>>
may be, defining a new printer can help you to retrieve the additional
info like current date/time. (See lynx.cfg, search for "printers").
You can write a script as printer command, which can modify the
downloaded text before showing/printing/saving...
Examples are given in lynx.cfg.
The script depends on the operating system (Linux, windows ...)
<<<<<<<<
Under MS-DOS I did that, a program that copies the named file to its standard
output _after_ environmental variables s names & values that Lynx generates;
they begin "LYNX_PRINT_", describe in "environments.html".
LYNX_PRINT_DATE This variable is set by the Lynx
p(rint) function, to the Date: string
seen in the document's "Information
about" page (= cmd), if any. It is
created for use by an external program,
as defined in a lynx.cfg
PRINTER: definition statement. If the
field does not exist for the document,
the variable is set to a null string
under UNIX, or "No Date" under VMS.
LYNX_PRINT_LASTMOD This variable is set by the Lynx
p(rint) function, to the Last Mod:
string seen in the document's "Information
about" page (= cmd), if any.
It is created for use by an external
program, as defined in a lynx.cfg
PRINTER: definition statement. If the
field does not exist for the document,
the variable is set to a null string
under UNIX, or "No LastMod" under VMS.
LYNX_PRINT_TITLE This variable is set by the Lynx
p(rint) function, to the Linkname:
string seen in the document's "Information
about" page (= cmd), if any.
It is created for use by an external
program, as defined in a lynx.cfg
PRINTER: definition statement. If the
field does not exist for the document,
the variable is set to a null string
under UNIX, or "No Title" under VMS.
LYNX_PRINT_URL This variable is set by the Lynx
p(rint) function, to the URL: string
seen in the document's "Information
about" page (= cmd), if any. It is
created for use by an external program,
as defined in a lynx.cfg
PRINTER: definition statement. If the
field does not exist for the document,
the variable is set to a null string
under UNIX, or "No URL" under VMS.
LYNX_VERSION This variable is always set by Lynx,
and may be used by an external program
to determine if it was invoked by
Lynx. See also the comments in the
distribution's sample mailcap file,
for notes on usage in such a file.