Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

printing from alpine

7 views
Skip to first unread message

William Unruh

unread,
Feb 6, 2022, 11:31:10 PM2/6/22
to
I would like to be able to print to a variety of printers from alpine,
not simply the default printer, but to use the default if nothing else
is specified. As far as I have seen in experiments there is now way of
sending a -P pritnername flag to lpr )or -d printername to lp) Is there
some way of sending various options to lpr without editing .pinerc and
then restarting alpine, only in order to print?

Eduardo Chappa

unread,
Feb 6, 2022, 11:36:39 PM2/6/22
to
Press M S P to set up the printer. Here is the output in my computer, so
you can see where to set up each part. I hope this helps.

Default printer set to "Bedroom".

Printer attached to IBM PC or compatible, Macintosh
This may not work with all attached printers, and will depend on the
terminal emulation/communications software in use. It is known to work
with Kermit and the latest UW version of NCSA telnet on Macs and PCs,
Versaterm Pro on Macs, and WRQ Reflections on PCs.
Printer: attached-to-ansi
attached-to-ansi-no-formfeed
attached-to-wyse
attached-to-wyse-no-formfeed

Standard UNIX print command
Using this option may require setting your "PRINTER" or "LPDEST"
environment variable using the standard UNIX utilities.
Printer List: "" lpr

Personally selected print command
The text to be printed will be piped into the command given here. The
command is in the 2nd column, the printer name is in the first column. Some
examples are: "prt", "lpr", "lp", or "enscript". The command may be given
with options, for example "enscript -2 -r" or "lpr -Plpacc170". The
commands and options on your system may be different from these examples.
Printer List: "Bedroom" /run/media/echappa/Alpine/scripts/printer
"Print to PS" /run/media/echappa/Alpine/scripts/printer --ps
"Print to PDF" /run/media/echappa/Alpine/scripts/printer --pdf

--
Eduardo
https://tinyurl.com/yc377wlh (web)
http://repo.or.cz/alpine.git (Git)

William Unruh

unread,
Feb 7, 2022, 2:13:50 AM2/7/22
to

This seems to imply that I have to select the printer to usebeofre hand
in order to set up alpine to use one of a selection. I travel a lot, and
am often at a place where I have to set up a new printer. This seems to
imply that at the new place I also have to set up a printer in alpine as
well.

It would be nice if I could just enter a command
lpr -P home-hp
say, or
lpr -P home-hp-single
lpr -P home-hp-duplex
etc.
instead of having to set it all up beforehand.

Eduardo Chappa

unread,
Feb 7, 2022, 11:44:10 PM2/7/22
to
On Mon, 7 Feb 2022, William Unruh wrote:

> It would be nice if I could just enter a command
> lpr -P home-hp
> say, or
> lpr -P home-hp-single
> lpr -P home-hp-duplex
> etc.
> instead of having to set it all up beforehand.

Press M S C and enable

[X] Print Offers Custom Command Prompt

Does this solve your issue?

William Unruh

unread,
Feb 8, 2022, 4:37:40 PM2/8/22
to
On 2022-02-08, Eduardo Chappa <cha...@washington.edu> wrote:
> On Mon, 7 Feb 2022, William Unruh wrote:
>
>> It would be nice if I could just enter a command
>> lpr -P home-hp
>> say, or
>> lpr -P home-hp-single
>> lpr -P home-hp-duplex
>> etc.
>> instead of having to set it all up beforehand.
>
> Press M S C and enable
>
> [X] Print Offers Custom Command Prompt
>
> Does this solve your issue?
>

It seems to. Thanks a lot for pointing me to the right place.

0 new messages