Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 04:50 23 Oct 2026 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 : Redirecting Text Output

Author Message
PilotPirx

Senior Member

Joined: 03/11/2020
Location: Germany
Posts: 158
Posted: 06:50am 22 Oct 2026
Copy link to clipboard 
Print this post

Hello,
Is it possible with MMBasic to redirect text output, such as OPTION LIST, to a COM port? (PRINT #1)?
I have a printer connected to COM1 and would like to print OPTION LIST.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 9230
Posted: 10:12am 22 Oct 2026
Copy link to clipboard 
Print this post

I don't know, it's not something I've ever wanted to do. I can't think of a way to do it directly from the Pico. OPTION LIST is a console command and displays on the console. Anything that is normally sent to a COM port is from the user's program.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
 
PilotPirx

Senior Member

Joined: 03/11/2020
Location: Germany
Posts: 158
Posted: 12:18pm 22 Oct 2026
Copy link to clipboard 
Print this post

I can print a screen dump, but then I have too much white space on the printout.
 
Martin H.

Guru

Joined: 04/06/2022
Location: Germany
Posts: 1571
Posted: 12:29pm 22 Oct 2026
Copy link to clipboard 
Print this post

how about

option console serial


  Quote  OPTION CONSOLE output
Specifies where print statements will output. Valid settings are BOTH (i.e.
SCREEN and SERIAL), SERIAL, SCREEN, NONE. This is a temporary
option that is reset when a program exits.

Edited 2026-10-22 22:30 by Martin H.
'no comment
 
Volhout

Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 6192
Posted: 12:40pm 22 Oct 2026
Copy link to clipboard 
Print this post

  PilotPirx said  I can print a screen dump, but then I have too much white space on the printout.


Maybe I my memory is confused, but before the WYSIWYG age printing ALWAYS wasted paper before you got it right.
Apple fixed it with the MAC, and soon after that Windows.

Volhout
PicomiteVGA PETSCII ROBOTS
 
ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 645
Posted: 01:02pm 22 Oct 2026
Copy link to clipboard 
Print this post

PilotPirx,

you could try MMCC start/end capture. Everything that prints to the serial console can be captured and processed later, no matter how long the output is (more or less). Very handy IMHO and often used to  document output.

Gerald
                                                                 
73 de OE1HGA, Gerald
 
PilotPirx

Senior Member

Joined: 03/11/2020
Location: Germany
Posts: 158
Posted: 01:03pm 22 Oct 2026
Copy link to clipboard 
Print this post

"option console serial" uses COM3, but i use COM1.
You can redirect it with OPTION CONSOLE PORT 1, but this causes a reset and its permanent. Thats not a good solution.
 
PilotPirx

Senior Member

Joined: 03/11/2020
Location: Germany
Posts: 158
Posted: 01:05pm 22 Oct 2026
Copy link to clipboard 
Print this post

  Quote  Maybe I my memory is confused, but before the WYSIWYG age printing ALWAYS wasted paper before you got it right.

That's true...
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 9230
Posted: 01:38pm 22 Oct 2026
Copy link to clipboard 
Print this post

Patient: "It hurts when I do this, Doctor."
Doctor:  "Don't do it then. Next please!"

:)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
 
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 2026