[comp.sys.amiga] HELP Needed with Printer Drive Escape Codes

gw@sickkids.UUCP (Graham Wilson) (01/23/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 get the amiga group here :-(

--------------------+----------------------------------------------------------
Graham Wilson       | UUCP:        {ubc-vision, watmath}!utai!utgpu!sickkids!gw
CyberFluor Inc      |  or  {decvax, linus!utzoo, uunet!mnetor!lsuc}!sickkids!gw
179 John St, #400   |
Toronto Ont M5T 1X4 | BITNET:                INTERNET:  gw@sickkids.toronto.edu
(416) 977-5450      | gw@sickkids.utoronto          or  gw@sickkids.utoronto.ca