1. printer test

How do you determine if the printer is on line or not ?

new topic     » topic index » view message » categorize

2. Re: printer test

Michael J Doscher wrote:
>
>         How do you determine if the printer is on line or not ?

You can call interrupt 17 (hex) to check printer ready.
I can't code this in Euphoria, as my pc is dead at the moment,
but here are the details:

load AH with $01        -- code to reset printer
load  DL with $00        -- 0 = LPT1
call interrupt $17      -- printer interrupt
load AH with $02        -- code for get printer status
load DL with $00         -- LPT1 again
call interrupt $17
status returned in AH

No guarantees, but this has worked with most pc's I have tried over the
past 5-6 years.

Irv

new topic     » goto parent     » topic index » view message » categorize

3. Re: printer test

At 07:54 AM 8/20/97 EDT, you wrote:
>---------------------- Information from the mail header -----------------------
>Sender:       Euphoria Programming for MS-DOS <EUPHORIA at
>MIAMIU.ACS.MUOHIO.EDU>
>Poster:       Michael J Doscher <mdoscher at JUNO.COM>
>Subject:      printer test
>-------------------------------------------------------------------------------
>
>        How do you determine if the printer is on line or not ?
>
Where is your printer?

Mine is next to my computer.  When I turn on the computer, the printer makes
initializing noises.  If the computer is already on, a glance at the printer
shows status lights on or off.  Your computer must be in the next room or in
another building or something.

Wally Riley
wryly at mindspring.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu