🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by root Sat, 06 Jun 1998 00:00
Using the piped printer code to print in slrn
#41357
Author: root
Date: Sat, 06 Jun 1998 00:00
43 lines
2004 bytes
The WinDos batch file attached to this post was posted to the
gnu-gcc forum at cygnus.com.  It essentially lets you use the
piped printer code in slrn to print text files by using a little-
known command-line option of the notepad problem.  This, of course,
greatly simplifies the maintenance of the slrn program, and completely
hides under the carpet the fact that many 32-bit compilers have a problem
compiling gdi32 printer code:

==========================================================================
                      Quick and dirty lpr for text files
                                       
   John F. Kolen (jkolen@typhoon.coginst.uwf.edu)
   Fri, 5 Jun 1998 11:18:57 -0500
   
       
The following works well enough from Emacs and the command line (bash
or MSDOG) for basic printing text files to the default printer.  It
even supports piping (necessary for emacs).

----------------------- cut here -----------------------
@echo off
if "%1" == "" goto NOFILES
:LOOP
start /m \Windows\Notepad /p %1
shift
if NOT "%1" == "" goto LOOP
goto THEEND
:NOFILES
copy con \Cygnus\tmpprint
start /m \Windows\Notepad /p \Cygnus\tmpprint
:THEEND
----------------------- cut here -----------------------

--
John F. Kolen                           voice: (850)474-3075
Assistant Professor                     fax:   (850)474-3023
Dept. of Computer Science
University of West Florida
Pensacola, FL 32514
-

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