Article View: news.software.readers
Article #41357Using the piped printer code to print in slrn
From: root
Date: Sat, 06 Jun 1998 00:00
Date: Sat, 06 Jun 1998 00:00
43 lines
2004 bytes
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
-
Technical Details
Message-ID:
<6lc5d8$5ge$1@gte2.gte.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <6lc5d8$5ge$1@gte2.gte.net> Subject: Using the piped printer code to print in slrn Date: Sat, 06 Jun 1998 00:00:00 +0000 From: root@gte.net () Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 360199777 Reply-To: vtailor@gte.net-nospam Organization: The Light X-Auth: C018825C08D7D69547C58491 Newsgroups: news.software.readers