On Sun, Oct 2, 2011 at 10:15 AM, Thomas Dickey
<address@hidden> wrote:
On Sun, 2 Oct 2011, Graham Lawrence wrote:
Does lynx happen to put the address of the current page in some global
variable? So then I could create a key mapping in vim that would cause
lynx to dump the page to a constant filename, and insert that file's text
where I want it in the vim buffer.
yes/no - it's a member of a structure. GridText.c (which is the file
that formats the current document into a display). Its notion of the
current document is an HText (structure) named HTMainText. The address is in an HTAnchor named HTParentAnchor. HTAnchor's contain addresses and
titles.
But dumping is a special case of display - it bypasses most of GridText.c
However - to your point - when you're telling lynx to dump a file, that
goes to the standard output. Redirecting that with a script should be
simple. (That doesn't require knowing anything about the variables that
lynx uses).
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net