How to Print on a Local Print Device Connected to a Terminal

Last reviewed: February 23, 1995
Article ID: Q126406
The information in this article applies to:
  • Microsoft FoxPro for UNIX, version 2.6

NOTE: We provide this information only as a convenience for our customers and do not provide warranties of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

SUMMARY

It is possible in UNIX to send printed output to a print device connected to a terminal, this article gives the steps you need to follow.

MORE INFORMATION

For a print device connected to a terminal to be used by UNIX, there must be two entries in the /etc/termcap file: PN (start printing) and PS (stop printing) for the terminal to which the print device is connected.

Because remote printing requires the use of /etc/termcap, you will not be able to use the terminfo entries that ship with FoxPro in your TERM environment variable. Instead, set the FoxPro specific value in the FOXTERM environment variable. If your terminal supports local printing and the /etc/termcap entry for the terminal contains the PN and PS sequences, follow these steps to print from FoxPro:

  1. When you start FoxPro, go to the File menu and choose Printer Setup. Under the file option, FoxPro defaults to the lp filter with the -s switch. Replace that filter with the lprint filter and press the OK button.

  2. Issue a command in FoxPro to send output to a print device followed by a SET PRINTER TO command. If you want to set up local printing automatically, follow these steps:

    a. Place _PRN, _LPT#, or _COM# in the CONFIG.FPU file, where # is a

          number from 1 to 3. Following the variable, place the filter lprint.
    

    b. To send printed output to the local print device, issue a SET PRINTER

          TO command along with the device you have identified as your local
          device.
    


Additional reference words: FoxUnix 2.60 print local FoxUNIX terminal
KBCategory: kbprint
KBSubcategory: FxprintGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 23, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.