🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Nancy McGough Wed, 15 Jun 1994 20:23
Re: Sending HTML posts to your browser from your newsreader
#5981
Author: Nancy McGough
Date: Wed, 15 Jun 1994 20:23
65 lines
2922 bytes
>In <boutellCqzyDy.ECK@netcom.com> boutell@netcom.com (Thomas Boutell) writes:
>> Oftentimes, folks post HTML to newsgroups, or at least post messages
>> with a little bit of HTML (say, a few <A HREF... tags) in it.


dls@netcom.com (Daniel L Smith) writes:
>	I just wrote an nn macro, to go in your ~/.nn/init.
>I assume a ~/text directory.  There are undoubtedly more elegant ways
>to do this...  Enjoy!
>
>				Daniel
>
># ^f: follow links by invoking lynx...
>map show ^f (
>        :!rm ~/text/lynx-article ~/text/lynx-article.html 2>&1 > /dev/null
>        save-full "~/text/lynx-article"
>        :!echo '<BODY>' > ~/text/lynx-article.html
>        :!echo '<TITLE>'News Posting'</TITLE>' >> ~/text/lynx-article.html
>        :!echo '<H1>'$F - Article $N'</H1>' >> ~/text/lynx-article.html
>        :!echo '<PRE>' >> ~/text/lynx-article.html
>        :!cat ~/text/lynx-article >> ~/text/lynx-article.html
>        :!echo '</PRE>' >> ~/text/lynx-article.html
>        :!echo '</BODY>' >> ~/text/lynx-article.html
>        :!lynx ~/text/lynx-article.html < /dev/tty
>        redraw
>)


This nn macro works fine but I prefer using one that just
calls a script.  That way you can use the script with other
things like Elm.  Here's what I'm doing:

---begin excerpt of ~/.nn/init---
map show ^f (
	save-full "|lynxify"
	redraw
)
---end excerpt of ~/.nn/init---


And lynxify is sitting in my ~/Bin:

---begin lynxify---
#!/bin/sh
# Author: Dr. Richard Botting <rbotting@wiley.csusb.edu>
# Posted to comp.infosystems.www.users on 9 June 94
# Prepare input with embedded html tags for lynx and then view it

file=/tmp/mailynx.${$}.html
(echo "<pre>" ; cat ; echo "</pre>" )> $file
lynx $file < /dev/tty
rm $file
---end lynxify---


So now as well as using it in nn with ^f I can use it in 
Elm by typing "|lynxify" or from the Unix prompt by typing 
"cat filename |lynxify".
 
Enjoy,
Nancy

--
<A HREF="ftp://ftp.ii.com/pub/ii">Nancy McGough, Infinite Ink</A>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads