Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 22:31 19 Nov 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 : interesting curiosity (bug) of no consequence

Author Message
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2466
Posted: 08:13am 31 Oct 2021
Copy link to clipboard 
Print this post

discovered on the picomite while testing out the new scrollback buffer, but also found to be present on the MX170 version of mmbasic:

>
> Micromite MKII MMBasic Ver 5.05.04
Copyright 2011-2021 Geoff Graham

>
>
> ? ,,,,,,,,,, "abc"

abc
> ? ,,,,,,,,,,, "def"
>
>


>
> ? ,,,,,,,,,,, "this is some text" ,,,,,, "and here is some more"
is some more
>
>
> print ,,,,,,,,,,, "this is some text" ,,,,,, "and here is some more"
is some more
>
>


it seems that 11 (or more) commas mess up printing at the command prompt. note that the behaviour is NOT present in a running program.


cheers,
rob   :-)
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10613
Posted: 08:42am 31 Oct 2021
Copy link to clipboard 
Print this post

Interesting, can't see anything obvious.

Question: does your terminal support ESC[0K clears from cursor to end of line?
Or could you?

I would like to use it to improve the command stacking in the Picomite
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2466
Posted: 10:27am 31 Oct 2021
Copy link to clipboard 
Print this post

  matherp said  support ESC[0K clears from cursor to end of line?


it is already in there     here is the 'cheat sheet' of supported escape sequences:
Partial VT220 Command Set.pdf

those with a tick on the left are supported. those with a red cross are exception that specifically are not (like blinking video, disable autowrap).

i suspect the bug may be related to the commas being expanded out into space characters, which are then somehow overflowing the print buffer.

here is it doing something even stranger, winXP (VM) and teraterm:



the printed output is overflowing into the input buffer.

addendum: one more,

>
> Micromite MKII MMBasic Ver 5.05.04
Copyright 2011-2021 Geoff Graham

> ? ,,,,,,,,,,,,

               >
>
>


the '>' ends up offset to the right. there definitely seems to be an initial trigger for the whole thing, but i'm struggling to find out what in any repeatable way.


cheers,
rob   :-)
Edited 2021-10-31 20:39 by robert.rozee
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2466
Posted: 11:13am 31 Oct 2021
Copy link to clipboard 
Print this post

peter, try typing exactly:

? 123456,,,,,,,,,,,,,,7890


addendum: nope, the effect just slipped away again!


cheers,
rob   :-)
Edited 2021-10-31 21:17 by robert.rozee
 
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