[comp.sys.amiga] HELP NEEDED - Printer Driver Escape Codes

gawilson@contact.uucp (01/24/90)

Greetings Amiga Users.

My father recently purchased his Amiga 500, and is having difficulty
sending control codes to the printer in AmigaBasic.

AmigaDOS Version 1.3

Printer drive is installed as "EpsonX[cmb_mps-1250]"

The following program uses the printer escape sequences as shown in
Appendix D of "Intro to the Amiga..." manual ("ESC[3m" for italics on
and "ESC[23m" for italics off).  It should print out the text in italics.

----------------------------------------
OPEN "lpt1:" FOR OUTPUT AS #2
PRINT #2, CHR$(27)+"[3m"
PRINT #2, "THIS IS ITALICS"
PRINT #2, CHR$(27)+"[23m"
CLOSE #2
----------------------------------------

The output appears as follows:

----------------------------------------
m
THIS IS ITALICS
3m
----------------------------------------

Why is the driver not interpreting the escape codes correctly?

The printer is installed the same way that the dealer has it (the
printer is a Raven - but Epson FX compatible).  Screen dumps work fine.

What is he doing wrong?  Any assistance is most greatly appreciated!

Please respond by e-mail - we do not always get all the amiga articles
around here :-(

-------------------------------------------------------------------------------
Graham Wilson   Internet:  gawilson@contact.uucp
                UUCP:  {utgpu, uunet}!mnetor!becker!contact!gawilson