1
! @(#)printsys.prg 19.1 (ESO-DMD) 02/25/03 14:08:59
2
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4
! MIDAS procedure printsys.prg to implement PRINT/LOG, PRINT/HELP
5
! K. Banse 910104, 910621, 920207
7
! executed via @ printsys string
9
! for PRINT/LOG: string = page_def
10
! with page_def = pstart,pend from pstart to pend (incl)
11
! page_no only that page
15
! for PRINT/HELP: string = command or command/qualif
17
! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
19
if mid$cmnd(11:11) .eq. "L" then !PRINT/LOG
20
define/param p1 1,9999 N "Enter pages to print: "
21
write/keyw inputi/i/15/2 {p1},{p1}
22
define/local oldlog/i/1/1 {log(1)}
23
log/off !turn logging off
27
if oldlog .ne. 0 log/on
28
if mid$prnt(1:1) .eq. "T" return
29
if mid$prnt(1:1) .eq. "F" return
31
@ print.prg print !send file to chosen printer
38
@ print.prg out !send file to chosen printer