No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 25: Using "pcprint" to print Grex stuff on your printer
Entered by remmers on Tue Mar 9 17:17:38 UTC 1993:

There are various ways to print files or command output from Grex
on your local printer, but one easy way -- provided that you are
using or emulating a DEC VT102, VT200-series, or VT300-series 
terminal -- is to use the recently installed "pcprint" command.

To print files:

        pcprint file1 file2 ...

To print the output of a Unix command:

        command | pcprint

In Picospan, to print one or more items:

        read pass 12 15 20 | pcprint

In elm, to print a mail message:

        | pcprint       (prints the currently selected message)

Haven't tried this, but in the newsreaders rn and trn, you can probably
print the current article by doing

        | pcprint

Examples:

        finger | pcprint        - print list of who's logged on
        man ls | pcprint        - print the man page on the 'ls' command
        last | head -50 | pcprint
                                - print log of last 50 Grex logins
        mailpk | pcprint        - print directory of pending mail messages
        finger -m user | pcprint
                                - print user's .plan file

From a Picospan prompt, you have to prefix the command with a "!"
character, of course.

The pcprint program should work most popular communication
programs that emulate VT??? with ??? greater than or equal to 102.
This includes Procomm Plus, MS-Kermit, Telix, Telemate, MacKermit,
VersaTerm, White Knight, and many others, I'm sure.  Haven't tested
it with all of these, so I make no guarantees -- But if it doesn't,
that means that your VT??? emulator doesn't support the "transparent
print" command, and you have grounds for griping to the authors
or distributors of your comm. program.

"Pcprint" is part of the MS-Kermit 3.12 distribution and is freeware.

24 responses total.



#1 of 24 by danr on Wed Mar 10 00:47:15 1993:

Thanks, John.  Looks useful.


#2 of 24 by chi1taxi on Mon Sep 6 01:10:10 1993:

Too bad it's not good for the VT100 terminal, which i believe is very widely
used. 


#3 of 24 by remmers on Mon Sep 6 08:26:09 1993:

It *might* work for a VT100 -- not sure if the VT100 supports local
printing or not.


#4 of 24 by rcurl on Mon Sep 6 21:01:47 1993:

It works in ProComm 2.4.3, which in manual claims only VT-100 emulation
(but in appendix mentions "VT-100 and VT-102"). Is there a way to use
this to print selected lines from the screen, in ProComm without a
mouse? I do this easily on a Mac with Versaterm, by selecting text to
print, but I don't know a way to do it on this PC with ProComm.


#5 of 24 by remmers on Tue Sep 7 02:58:51 1993:

That's right -- a VT100 emulator might actually emulate more than a
standard VT100, so I'm not surprised that remote-controlled printing
works with ProComm.

There's really no way to use this to printed selected lines from the
screen, since 'pcprint' runs on Grex and doesn't "know" what's on your
screen.


#6 of 24 by rcurl on Tue Sep 7 04:19:00 1993:

In picospan, does "read pass 12 15 20 | pcprint" print *items* 12, 15 and
20, as stated, or responses 12, 15 and 20, in the Item you are in? (I
hope its the latter!).


#7 of 24 by remmers on Tue Sep 7 04:38:34 1993:

At the "Ok:" prompt, it would print the items.  Picospan doesn't
recognize the "|" symbol at the "Respond or pass" prompt, so printing
selected responses in an item is a bit awkward.  The following should
work, though:

   define pager pcprint; only 12; only 15; only 20; define pager more

(assuming that your usual pager is "more").  It would be much nicer to
be able to do something like

only 12,15,20 | pcprint



#8 of 24 by davel on Tue Sep 7 09:51:04 1993:

It sure would!


#9 of 24 by rcurl on Tue Sep 7 12:20:13 1993:




#10 of 24 by rcurl on Tue Sep 7 12:49:56 1993:

I tried "define pager pcprint; only 7; only 8; define pager more" at the
Respond or pass prompt. I got a printer dialog box, but nothing happened
when I clicked OK (this is a Mac). So I tried the same command
"define pager pcprint; only 7; only 8; define pager more" from the OK:
prompt, and it proceeded to print responses 7 and 8 *and* then started
on all of Item 25. After finishing that, I got printing whenever I tried
to do anything else. Please describe the procedure I should try, more
fully.


#11 of 24 by popcorn on Wed Sep 8 02:41:15 1993:

This response has been erased.



#12 of 24 by rcurl on Wed Sep 8 03:46:43 1993:

Light dawns. However, pcprint didn't print, although it called for the
print dialog box. I should see if pcprint works *directly* with
Versaterm and the print driver I am using. 


#13 of 24 by rcurl on Wed Sep 8 04:11:33 1993:

!pcprint file does not work with this Mac, running Versaterm, and printing
with a special driver to a DeskJet. The first time the print dialog box
came up, but no printing on OK. The second time the dialog box did not
even appear. An imcompatibility, I guess. 


#14 of 24 by aa8ij on Wed Sep 8 19:26:15 1993:

  maybe a solution to the matter is : put your capture on, and then when
offline, edit and print the item. This is the way I do things on my Mac.
I never did get the hang of that rz jazz, so I just turn my pager off,
read the entire item into my buffer, edit the buffer, then print and
add it to my archive.


#15 of 24 by rcurl on Thu Sep 9 03:18:32 1993:

I have to admit that, on this Mac, trying to get !pcprint to work is
just an academic exercise. I usually just highlight what I want to
print, and print it on line, or if I don't want to wait, Save Selection
to a file, and print from that offline. I don't have these options when
connecting with ProComm 2.4.3, so !pcprint was a nice thing to learn
about. Like ExtraSaurus, I'm an Ambiplatformus.


#16 of 24 by remmers on Thu Sep 9 08:31:20 1993:

If Versaterm claims to be emulating a VT102, then it's a faulty emulation
if pcprint doesn't work.


#17 of 24 by rcurl on Thu Sep 9 22:06:10 1993:

I'm actually emulating a DEC VT220. Does that matter? Maybe I have something
wrong in a setting?


#18 of 24 by remmers on Fri Sep 10 02:46:05 1993:

VT220 should work too.  I don't know Versaterm, though, so I don't know
what options you have.


#19 of 24 by remmers on Wed Jan 26 15:28:33 1994:

Don't forget about the wonders of the "pcprint" command, folks.
If you're using a "vt" type terminal emulator (vt100, vt102, vt200,
etc.) and have a printer attached to your machine, you can use it
to get hardcopy of Grex output.  Details are in response #0.

Should work on a Mac, a PC, or anything else.


#20 of 24 by tsty on Wed Jan 26 18:59:09 1994:

ummm, in 0 there is a reference to vt102 or higher, and in #19, it
says vt100 or higher.
 
I fully realize that there were no guarantees, just noticed the
difference. 


#21 of 24 by remmers on Thu Jan 27 02:56:52 1994:

I'm not sure if a "real" vt100 supports a printer under host control,
although higher vt's do.  There have been reports of succesful
use of pcprint with vt100 *emulators*, though.


#22 of 24 by tsty on Thu Jan 27 08:57:36 1994:

Aha - sounds like it's time to experiment ........
thankxx


#23 of 24 by popcorn on Thu Jan 27 14:46:13 1994:

This response has been erased.



#24 of 24 by remmers on Thu Jan 27 14:59:37 1994:

Doubtful.  The vt52 recognizes a completely different set of host
control codes than the other vt's.

Response not possible - You must register and login before posting.

No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss