![]() |
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 KingdomPosts: 4311 |
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 KingdomPosts: 4311 |
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 KingdomPosts: 10315 |
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 KingdomPosts: 4311 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |