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