Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:22 02 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : EDIT Lists to serial port?

Author Message
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 424
Posted: 11:31am 01 Jul 2025
Copy link to clipboard 
Print this post

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

Edited 2025-07-01 21:34 by toml_12953
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025