lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Transferring page text from lynx to vim


From: Thomas Dickey
Subject: Re: [Lynx-dev] Transferring page text from lynx to vim
Date: Sun, 2 Oct 2011 13:15:22 -0400 (EDT)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]