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

Re: print directly to lpt1, like in dos

From: Rick VanNorman <rvn_at_forth.com>
Date: Thu, 31 Dec 1998 10:23:25 -0800

>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 - 10:23:25 PST

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