lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev I forgot: how to add an "append" choice to print-menu?


From: Mike Warner
Subject: Re: lynx-dev I forgot: how to add an "append" choice to print-menu?
Date: Thu, 4 Apr 2002 14:12:28 -0800
User-agent: Mutt/1.2.5i

On or about 04 Apr, 2002, David Combs
<address@hidden> wrote:

> I want to add an "append to file" choice to that print-menu.
> 
> Can someone give me a "cookbook" solution?

Define the options in lynx.cfg

PRINTER appends rendered page, DOWNLOADER appends source.

PRINTER:append to a file:cat %s >> %s:TRUE
DOWNLOADER:append to a file:cat %s >> %s:TRUE

The first "%s" is the source (lynx takes care of this one), the
second "%s" prompts for a file name to append to.  ">>"
redirection appends if the target file exists, otherwise writes a
new file.  A single ">" redirection would overwrite always.

Minimal testing done, so try it out on non-critical files to make
sure it works for you.

NOTE: This is a *nix-ish solution (cygwin in my case); for win32,
etc, you'll have to seek elsewhere :).

-- 
Michael Warner       | Procrastinate now.
<address@hidden> |

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

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