![]() |
Forum Index : Microcontroller and PC projects : Picomite ' CLS '
Author | Message | ||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
CLS Gives me Saved 30 bytes [3] CLS Error : Display not configured > I have not been able to find how to configure . ( It does ' PRINT ' ) ????? my site |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
CLS is a graphics command. It works when you have an LCD screen enabled OPTION LCDPANEL ....... Or am I missing something? |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
You probably want to do: Print Chr$(27) + "[2J" + Chr$(27) + "[H" which will mimic a CLS on a VT serial console. Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Normally it would clear the screen : CLS [colour] CMM MM DOS Clears the video display screen and places the cursor in the top left corner. Optionally 'colour' can be specified which will be used for the background when clearing the screen (Colour Maximite only). my site |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Even though it will ' PRINT ' , it won't ' CLS ' ???? my site |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
I'm not going to argue the right and wrong of it, but PRINT is a "console command" (I'm guessing it doesn't print to the LCD, you use TEXT for that) whereas on the PicoMite CLS is a purely "graphics command". Best wishes, Tom Edited 2021-10-28 05:33 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
CLS brings up an error if used on the terminal. It's a graphics only command and will only work on attached LCD display. is telling you that you have no LCD display configured. To configure one you'll have to connect it and use the appropriate OPTION LCDPANEL command for that model. Have you got one attached? Note that on the PicoMite the Console and Graphics commands are completely different and non-interchangeable. There is a reason for this. The PicoMite is intended to be used as an embedded controller, where the user's interface would be via a touch screen or similar. Allowing the user to connect via the Console could be dangerous (or at least damaging). Consequently the Console and LCD modes are completely separate. The PicoMite will run perfectly happily without a console attached. Edited 2021-10-28 05:51 by Mixtel90 Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Another way of looking at it is "Do you really want the act of clearing the LCD to also clear all those debug/diagnostics you were PRINTing to the terminal ?" Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Another way of looking at it is "Do you really want all those debug/diagnostics you PRINT to the terminal to scroll rather than refresh ?" ![]() my site |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
Thank You ! Awkward , but it works .... ![]() my site |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
I posted a little VT100 library a while ago. It has various commands to control the console, so Vcls clears the screen Vch sends the cursor home Vat(row,column) moves the text position to a set point - like Print@ but it doesn't accept a string. There are also commands to change the foreground and background colours and a bit more stuff. It was intended for the Micromite, but seems to run fine on anything. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Tinine Guru ![]() Joined: 30/03/2016 Location: United KingdomPosts: 1646 |
Here it is.... Thanks Mick ![]() |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
I found a bug in it a couple of weeks ago. I think it was to do with text attributes not returning to normal or something. Can't remember what I was doing now... There are probably others. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |