[comp.sys.ibm.pc] Need Help With Graphics Printing

andyross@ddsw1.MCS.COM ([andrew rossmann]) (12/10/88)

  Any data sent to the printer via DOS will have any 1Ah (^Z) characters
stripped out. Instead, you should use the BIOS. Just make a call to INT 17h
with AH=0, AL=character, DX=printer number (0=LPT1...)

In Turbo Pascal 5.0:

program anything;
Uses DOS;

procedure pout(data: byte; port: word);
  var
    regs: registers;
  begin
  with regs do
    begin
    AH:=0;
    AL:=data;
    DX:=port;
    Intr($17, regs)
    end
  end; {pout}

begin {main program}
end. {anything}

  andyross@ddsw1.mcs.com  -or-  ...!ddsw1!andyross