View Single Post
Unread 06-18-2012, 09:22 PM   #4 (permalink)
naisho
Forum Disorders M.D.,Ph.D
 
naisho's Avatar
 
Join Date: Nov 2006
Location: 127.0.0.1
Posts: 6,162
I've never ran a Mocha terminal, so I do not have a good understanding in this area of how the program works.
It looks like there's a free source for linux out there, but it's probably not the same source being used for your Windows 7 port/counterpart you are running on so some things may be different.

According to this manual written for UNIX background:
www.chowhouse.com/~james/tn5250-HOWTO.pdf

Code:
TN5250 HOWTO

4.8 Local printing

Usually pressing the print key results in the screen being printed by the iSeries. 
This behaviour can be changed to have the host on which tn5250 is running do the print screen by using the +local print key argument. +local print key will cause a print screen to be sent to the default printer when the print screen key is pressed (usually Control-P).

On unix-like systems there are a number of arguments associated with +local print key to control how the resulting postscript is generated. 
These are described in the following table:

Argument
outputcommand=CMD
psfontsize 80=NUM
psfontsize 132=NUM
pagewidth=NUM
pagelength=NUM
leftmargin=NUM
topmargin=NUM

Section 4: Configuration

Description
command to pipe postscript to
size in dots of font in 80 columns
size in dots of font in 132 columns
width in dots of page
length in dots of page
left margin of page in dots
top margin of page in dots

Default
lpr
10
7
612
792
18
36

Adding +local print key to our .tn5250rc file looks like this:
as400 {
host = as400.mydomain.com
env.TERM = IBM-3477-FC
env.DEVNAME = MYDISPLAY
+underscores
map= 37
env.USER = MYUSER
env.IBMSUBSPW = MYPASSWORD
env.IBMPROGRAM = MYPROGRAM
env.IBMMENU = MYMENU
env.IBMCURLIB = MYLIBRARY
+local print key
}
So reading from this, is it actually supposed to be printing something or updating/refreshing the terminal from what you are describing?

Can you check your default printer on your Win7 Desktop?
What is it set to?

Some googling around looks like X print (not X-Print) is a software dependency from Mozilla for some unix/debian operating systems, unless it was supposed to come bundled along with the mocha installation.
Quote:
X Print Service

Most X client software is designed to use native printing on the host where the client is running (which may be remote or local). Some X client software (Xedit, Xman, Xmore, etc. in X.org release 6.71 and later), Netscape 7.0, Mozilla FireFox) now supports printing via a X print service (Xprint) Xprt server to a postscript capable printer on the local workstation. (The X print service assumes that the target printer will have PostScript engine and all necessary fonts to render the page.) A Xprt server is integrated in to the Exceed server. For information about Xprint/Xprt see: The X print service uses the same internet ports as the X Windows System and this may further limit the number of X Windows System users that a system with X-client software can support. There are other Unix printing solutions for printing via the Internet, for example:
naisho is offline   Reply With Quote