![]() |
Forum Index : Microcontroller and PC projects : print statement with only cr
Author | Message | ||||
drkl![]() Senior Member ![]() Joined: 18/10/2015 Location: HungaryPosts: 102 |
Hello, is there any possibility always overwrite a number in place? I hate the scrolling lines... drkl |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
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: HungaryPosts: 102 |
Sorry, I forgot: Micromite version 4.7 drkl |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
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 KingdomPosts: 4044 |
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 John |
||||
drkl![]() Senior Member ![]() Joined: 18/10/2015 Location: HungaryPosts: 102 |
Many thanks, both solutions are good, I tested with Teraterm. drkl |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |