![]() |
Forum Index : Microcontroller and PC projects : Using MMBasic as shell
Author | Message | ||||
isochronic Guru ![]() Joined: 21/01/2012 Location: AustraliaPosts: 689 |
Hi Would it be realistic to adjust the MMBasic prompt environment to be a sort of shell or OS ? It looks good and it has a lot of nice features, I am wondering if CFunctions can run "underneath" then maybe a CFunction could run as its own simple application ? I am probably way off track so apologies if that is so ( wouldn't be the first time :) ) |
||||
G8JCF![]() Guru ![]() Joined: 15/05/2014 Location: United KingdomPosts: 676 |
It will be possible to do what you want in the very near term, just not right now Peter The only Konstant is Change |
||||
Chris Roper Senior Member ![]() Joined: 19/05/2015 Location: South AfricaPosts: 280 |
I would love to see a simple Line Edit function where Up Arrow is last command and then you can modify it into a new or corrected command. http://caroper.blogspot.com/ |
||||
G8JCF![]() Guru ![]() Joined: 15/05/2014 Location: United KingdomPosts: 676 |
@chronic You're not off track at all ! In 4.7 B23 and later there is a way for a CFunction to run in the background all the time even when MMBasic is sitting at the command prompt. goto http://www.mmbasic.org/calltable/CFuncmSec.html for documentation and example code. Notice that if you break out of the program using Ctrl+C, the background CFunction continues to run. CFuncmSec is the gateway to providing time-slice multi-tasking (of C code only) under MMBasic Peter The only Konstant is Change |
||||
isochronic Guru ![]() Joined: 21/01/2012 Location: AustraliaPosts: 689 |
It raises another question, can a CFunction (or similar) run in other (within reason!) environments ? I gather it is a slab of largely autonomous machine code ? The SD card Cfunction looks really nifty ![]() |
||||
G8JCF![]() Guru ![]() Joined: 15/05/2014 Location: United KingdomPosts: 676 |
Thank you @Chronic The SDCard driver is closely integrated with the MMBasic Interpreter and could NOT run in any other C environment. Peter The only Konstant is Change |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |