🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by Mark Wagnon Sun, 05 Mar 2000 00:00
[slrn] How to print
#58927
Author: Mark Wagnon
Date: Sun, 05 Mar 2000 00:00
17 lines
1429 bytes
Hi all,

I've searched through several websites and the local slrn
documentation, but I can't find any reference to printing articles
under slrn. I've checked out a few example .slrnrc files with
similar luck. Can anyone point me in the right direction with this?

thanks
-- 
 --------------------------------------------------------------------
 ) Mark Wagnon        )  Treat passwords like underwear...  Never    )
(  Chula Vista, CA   (   let friends borrow them and never leave    (
 ) mwagnon1@home.com  )  them lying about.  And as anybody's mother  )
(                    (   would say, change them often.              (
 --------------------------------------------------------------------

Re: [slrn] How to print
#58920
Author: Morten Bo Johansen
Date: Sun, 05 Mar 2000 00:00
83 lines
3389 bytes
On Sun, 05 Mar 2000 05:59:53 GMT, Mark Wagnon wrote:
>Hi all,
>
>I've searched through several websites and the local slrn
>documentation, but I can't find any reference to printing articles
>under slrn. I've checked out a few example .slrnrc files with
>similar luck. Can anyone point me in the right direction with this?

The little script below which I think is pretty neat was posted
to the mutt mailing-list recently. Using this and entering the
following line 

              set printer_name "a2psmail"

into you slrn.rc then pressing "y" in article-mode will make
slrn print the current article one-sided if it fits into one
such, otherwise it will place two sides on one page.

Needless to say you must have installed the package "a2ps" and
set up your printer for proper operation.



Morten


------------------------a2psmail begin---------------------------

#! /bin/sh
#
#  $Id: a2psmail,v 1.1 1999/08/26 17:03:10 roland Exp roland $
#
##########################################################################
#
#  Print a mail using a2ps.  If the mail fits on one page, we use "a2ps -1"
#  otherwise we print two pages on one sheet ("a2ps -2").
#
##########################################################################
#
#   Copyright (C) 1999  Roland Rosenfeld <roland@spinnaker.de>
#
#   This program is free software; you can redistribute it and/or
#   modify it under the terms of the GNU General Public License as
#   published by the Free Software Foundation; either version 2 of
#   the License, or (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
#   General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
##########################################################################

umask 077

#DEBUG="-Pdisplay"

tmpdir=${TMPDIR-/tmp}/a2psmail.$$
mkdir $tmpdir || exit 1
trap "rm -rf $tmpdir; exit" 0 1 2 3 15

cat "$@" > $tmpdir/mail

env -u LANG a2ps -1 -gEmail -Pvoid $tmpdir/mail 2> $tmpdir/a2ps.out

if (cat $tmpdir/a2ps.out | grep -q 'on 1 sheet')
then
    # Mail fits on one page:
    a2ps -1 -gEmail $DEBUG $tmpdir/mail
else
    # Mail doesn't fit on one page:
    a2ps -2 -gEmail $DEBUG $tmpdir/mail
fi

---------------------------a2psmail end----------------------------



Re: [slrn] How to print
#58921
Author: Vedran Krivokuca [mANiaC]
Date: Sun, 05 Mar 2000 00:00
17 lines
1572 bytes
Dana Sun, 05 Mar 2000 05:59:53 GMT, Mark Wagnon <mwagnon1@spamisforeatingnotreadinghome.com> napisa:
>Hi all,
>
>I've searched through several websites and the local slrn
>documentation, but I can't find any reference to printing articles
>under slrn. I've checked out a few example .slrnrc files with
>similar luck. Can anyone point me in the right direction with this?
>
??? Press 'Y' while in article mode.

-- 
Pozdrav / Greetings,
VEDRAN KRIVOKU�A [mANiaC]                   <MAILTO vedran@linuxfan.com>
<GSM +385 91 2505654>  <ICQ# 7188440>  <WEB http://www.bbm.hr/~vkrivoku>
                      - OBO JE XPBATCKA!   - Budalo, ovo je newsgrupa!!!

Re: [slrn] How to print
#58924
Author: Matthew Haley
Date: Sun, 05 Mar 2000 00:00
20 lines
1307 bytes
On Sun, 05 Mar 2000 05:59:53 GMT, Mark Wagnon <mwagnon1@spamisforeatingnotreadinghome.com> wrote:
>Hi all,
>
>I've searched through several websites and the local slrn
>documentation, but I can't find any reference to printing articles
>under slrn. I've checked out a few example .slrnrc files with
>similar luck. Can anyone point me in the right direction with this?
>
>thanks


'y'

-- 
Petition for Linux Drivers: http://www.libranet.com/petition.html
slrn			  : http://www.slrn.org
Xnews (Win32)		  : http://xnews.3dnews.net
Xnews Installer (Win32)	  : http://www.users.uswest.net/~mrh99/Xnews.htm

Re: [slrn] How to print
#58925
Author: Mark Wagnon
Date: Sun, 05 Mar 2000 00:00
22 lines
1647 bytes
Okay, my bad. I know that I'm supposed to press 'y' to print, but when
I do, I get a bunch of garbage on the display and an error that says
something like "printer returned error code 1". 

What I was looking for is if there was something I needed to specify
or if pressing 'y' is supposed to work by default?

I guess there could be something wrong with my installation of slrn.
I'll post to my linux distribution mailing list to see if anyone else
is having similar problems.

Thanks for you help.

-- 
 --------------------------------------------------------------------
 ) Mark Wagnon        )  Counting in octal is just like counting in  )
(  Chula Vista, CA   (   decimal - if you don't use your thumbs.    (
 ) mwagnon1@home.com  )       -Lehrer, Tom                           )
 --------------------------------------------------------------------

Re: [slrn] How to print
#59287
Author: Dawn Owens-Nicholson
Date: Fri, 17 Mar 2000 00:00
15 lines
1644 bytes
Victoria Heisner wrote:
> Logically, since everything but slrn prints just fine, the problem wouldn't
> be with my system, but, rather with slrn.....

Perhaps you installed slrn as a prebuilt package of some kind (like an RPM
with binaries inside) and never configured it properly for your system, in
which case slrn isn't the problem but your misconfiguration is (or the RPM
is configured for a system that isn't like yours).  I've forgotten whether
printing is a compile-time option or runtime option, but as I look around I
think it's the former.  You might be better served by compiling slrn for
yourself.  I'd need more details about your installation to be sure since I
don't use KDE, precompiled binaries, RPMs and I have no trouble printing to
lpr from slrn.

Re: [slrn] How to print
#59305
Author: Victoria Heisner
Date: Fri, 17 Mar 2000 00:00
35 lines
2240 bytes
On Sun, 05 Mar 2000 08:44:51 GMT, Mark Wagnon
      <mwagnon1@spamisforeatingnotreadinghome.com> wrote:
>
>Okay, my bad. I know that I'm supposed to press 'y' to print, but when
>I do, I get a bunch of garbage on the display and an error that says
>something like "printer returned error code 1". 
>
>What I was looking for is if there was something I needed to specify
>or if pressing 'y' is supposed to work by default?
>
>I guess there could be something wrong with my installation of slrn.
>I'll post to my linux distribution mailing list to see if anyone else
>is having similar problems.

I'm having similar problems.  I'm running COL 2.3, and the latest version of
slrn.  Everything else will print just fine in KDE, however, whenever I try
to print using slrn, I get a screen full of garbage, and an error message
saying something to the effect of "printer not specified".  I simply save
the message, and then print it out using text editor.  Also, when I run slrn
in run level 3, I still get the printing problems.

Logically, since everything but slrn prints just fine, the problem wouldn't
be with my system, but, rather with slrn.....

So, if you find out any more information, please post it here.....

Thanks,
Vicki
-- 
Both the rich and the poor get ice.  It's just that the rich get theirs in
summer, and the poor in winter.

             --"Bat" Masterson

Re: [slrn] How to print
#59458
Author: Rick Pasotto
Date: Wed, 22 Mar 2000 00:00
47 lines
2624 bytes
On Fri, 17 Mar 2000 19:54:08 GMT in news.software.readers, Victoria
Heisner wrote:
> 
> Logically, since everything but slrn prints just fine, the problem
> wouldn't be with my system, but, rather with slrn.....
> 
> So, if you find out any more information, please post it here.....

You need to set the environment variable PRINTER before running slrn.

Changes since 0.9.5.1
10. New function: print_article.  This function may be customized via
    the `printer_name' setting.  If `printer_name' is not set, then
    the default printer will be selected.  Otherwise, the meaning of
    this variable will depend upon the OS:
    
        WIN32  :  The name of the print queue.  The default is to use
	          the win.ini setting.
	UNIX   :  The name of a process that represents the printer, e.g.,
	
	            set printer_name "my_print_filter | lpr -Pmy_printer"

                  The default is to use "lpr -P$PRINTER".

        OS/2, VMS: ??? needs implemented

    The key binding may be set via, e.g.,
    
        setkey article "print_article"  "y"

    (`y' is the default binding)

    Note: This function could have been defined via a macro for Unix systems,
    but for e.g., windows 95 this was not possible and required a
    built-in solution.

-- 
"So long as the power-seekers clung to the basic premises of the
welfare state, holding need as the criterion of rewards, logic forced
them, step by step, to champion the interests of the less & less
productive... until they reached the ultimate dead end of turning from
the role of champions of 'honest toil' to the role of champions of
open parasitism, parasitism on principle, parasitism as a 'right'."
		-- Ayn Rand "A PreView" _The Ayn Rand Letter_
		   Rick Pasotto email: rickp@vnet.net

Re: [slrn] How to print
#59655
Author: Victoria Heisner
Date: Sat, 25 Mar 2000 00:00
51 lines
2512 bytes
On Wed, 22 Mar 2000 14:24:00 GMT, Rick Pasotto <rick@tolive.vnet.net> wrote:
>On Fri, 17 Mar 2000 19:54:08 GMT in news.software.readers, Victoria
>Heisner wrote:
>>
>> <problem with not being able to print through slrn>
>
>You need to set the environment variable PRINTER before running slrn.
>
>Changes since 0.9.5.1
>10. New function: print_article.  This function may be customized via
>    the `printer_name' setting.  If `printer_name' is not set, then
>    the default printer will be selected.  Otherwise, the meaning of
>    this variable will depend upon the OS:
>    
>        WIN32  :  The name of the print queue.  The default is to use
>	          the win.ini setting.
>	UNIX   :  The name of a process that represents the printer, e.g.,
>	
>	            set printer_name "my_print_filter | lpr -Pmy_printer"
>
>                  The default is to use "lpr -P$PRINTER".
>
>        OS/2, VMS: ??? needs implemented
>
>    The key binding may be set via, e.g.,
>    
>        setkey article "print_article"  "y"
>
>    (`y' is the default binding)
>
>    Note: This function could have been defined via a macro for Unix systems,
>    but for e.g., windows 95 this was not possible and required a
>    built-in solution.
>

Thanks, that was exactly the right ticket.  A simple

export PRINTER=ps

line in my .bashrc has fixed the problem and now I'm printing through slrn
perfectly.

Thanks again,
Vicki
-- 
Both the rich and the poor get ice.  It's just that the rich get theirs in
summer, and the poor in winter.

             --"Bat" Masterson

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