Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:41 02 Aug 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 : CMM2: can empty line after running a program be supressed?

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 12:43pm 11 Nov 2020
Copy link to clipboard 
Print this post

Hi folks,

Is there any way of avoiding the empty line that is printed after running any program on the CMM2?

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 12:53pm 11 Nov 2020
Copy link to clipboard 
Print this post

Something that works on VGA as well as serial console please, so using a VT100 escape code to move the cursor up a line is not sufficient.

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 12:59pm 11 Nov 2020
Copy link to clipboard 
Print this post

No: The code is already massively complicated dealing with scrolling and the status line and different font sizes so I'm not making any more changes
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 01:10pm 11 Nov 2020
Copy link to clipboard 
Print this post

This seems to do the trick for my use-case:

Option Console Screen
y% = Mm.Info(VPos) - Mm.Info(FontHeight)
Print @(0, y%);
Option Console Serial
Print Chr$(27) "[A";
Option Console Both


Any gotchas you'd like to warn me about ?

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
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