EDIT output Goes to Serial Port

I’m trying to set up my PicoCalc so I can list programs (see routine below) and print output to the serial port to which I’ve connected an Epson receipt printer. Generally it works fine. the printer is fast, silent and gives excellent quality print.
In a program I can do this to print results:

option console serial
print "whatever I want"
option console screen

Wonderful!

So what’s the problem?

Every time there’s an error in a program (yes, even I make occasional errors!) or I go into EDIT mode, the printer is activated.

I’d like output to the serial port only when I request it. I have the source code but there are a lot of C programs and headers to wade through and I still haven’t figured out how to revert the foreground color to green instead of white after an error occurs.

Does anyone have any pointers as to where I should look?

LLIST command:

SUB LLIST(fname$)
 Option console serial
 If fname$ = "" Then
   LIST ALL
 Else
   LIST ALL fname$
 END IF
 Print: Print: Print: Print: Print
 Option console screen
END SUB

Can you list the hardware you are using. Epson model and etc.

Geoff

I use a PicoCalc with Pico 2W, Epson TM-T88II. I also use a Fujitsu FP510II. The printer doesn’t matter. They just print anything that is sent out the serial port of the PicoCalc.

OPTION SERIAL CONSOLE COM1 GP0,GP1
I also tried
OPTION SERIAL CONSOLE COM2 GP4,GP5

it made no difference.

MMBasic sends unwanted output to the serial port as well as the screen. It changes OPTION CONSOLE SCREEN to OPTION CONSOLE BOTH after a program runs, also if there’s an error and after a FILES command.