Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:49 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 : print statement with only cr

Author Message
drkl

Senior Member

Joined: 18/10/2015
Location: Hungary
Posts: 102
Posted: 09:12am 02 Nov 2015
Copy link to clipboard 
Print this post

Hello, is there any possibility always overwrite a number in place?
I hate the scrolling lines...
drkl
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 09:17am 02 Nov 2015
Copy link to clipboard 
Print this post

Sure put highly depended on what you are using.
Which version of MMBasic and which of the Maximite/Color Maximite/Micromite is it.


Microblocks. Build with logic.
 
drkl

Senior Member

Joined: 18/10/2015
Location: Hungary
Posts: 102
Posted: 09:46am 02 Nov 2015
Copy link to clipboard 
Print this post

Sorry, I forgot: Micromite version 4.7
drkl
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 09:51am 02 Nov 2015
Copy link to clipboard 
Print this post

It will also help to know what sort of display (or terminal program) you are using.
If a PC, you can use VT100 commands to position the text wherever you want it.
eg
PRINT CHR$(27)+"[1;1H",TIME$
will print the time at row 1, column 1

If a TFT display, you use different commands.

Jim
VK7JH
MMedit
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4044
Posted: 10:48am 02 Nov 2015
Copy link to clipboard 
Print this post

If you pad to a consistent length you can use

print chr$(13);x$;

or

print chr$(13)+x$;

where x$ is the padded string.

The idea is CR but not LF

JohnEdited by JohnS 2015-11-03
 
drkl

Senior Member

Joined: 18/10/2015
Location: Hungary
Posts: 102
Posted: 12:17pm 02 Nov 2015
Copy link to clipboard 
Print this post

Many thanks, both solutions are good, I tested with Teraterm.
drkl
 
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