spec

Software for Diffraction

3.11. - Printer Initialization Macros



These macros send out the particular character sequences that put various printers into compressed mode to fit 132 columns of text on 8½" wide paper.
# Put DecWriter into compressed mode
def initdw 'onp; offt; printf("\033[4w"); offp; ont'

# Put Epson printer into compressed mode
def initfx 'onp; offt; printf("\017"); offp; ont'

# Put Okidata printer into compressed mode
def initoki 'onp; offt; printf("\035"); offp; ont'

# NEC P6/P7 printer, put into compressed mode
def initnec 'onp; offt; printf("\033!\004"); offp; ont'