programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: print directly to lpt1, like in dos

From: Gene LeFave <gene_at_tekdata.com>
Date: Thu, 31 Dec 1998 16:27:41 -0600

Rick,

This is the very thing I'm trying to do too. It seems to me that there
must be a way to do it. The LPT1 driver must be callable, otherwise how
can the printer drivers and spoolers send data to it? I've tried BIOS
calls but they crash the system. I've also tried opening LPT1: and PRN:
as files or Comm devices but that doesn't work either. I will grant you
that it is a well guarded secret since most terminal emulators do not
support it either. Yet it must be doable.

Gene

talk_at_forth.com wrote:

> Original sender: "Rick VanNorman" <rvn_at_forth.com>
> >Original sender: "Timmerfabriek Overbeek" <tifa.overbeek_at_introweb.nl>
> >Which command have I to use to print
> >directly to lpt1, without a windows-box?
> >
> >I am compiling programs running under dos to swisforth.
> >This knows the words: printer ( output to lpt1)
> > console ( output to terminal).
>
> Hugo,
> Windows does not support printing directly to a printer port.
> In Windows, the printer is a device which is drawn on via a
> "device context". We do provide services in SwiftForth for
> printing to the Windows-recognized installed printers,
>
> In particular, the simplest method of printing is to use
> the word >PRINT . This parses the rest of the input line and
> directs its output to the printer. For instance, you might
>
> >PRINT HERE 100 DUMP
>
> >PRINT may be used with any words which generate output via
> standard EMIT or TYPE functions.
>
> Rick VanNorman

.
Received on Thu Dec 31 1998 - 16:27:41 PST

This archive was generated by hypermail 2.2.0 : Thu Nov 20 2008 - 03:04:26 PST