Tab completion and OSCLI-safe local/global loading and execution of non-MOSlet .bins#128
Open
HeathenUK wants to merge 6 commits intobreakintoprogram:mainfrom
Open
Tab completion and OSCLI-safe local/global loading and execution of non-MOSlet .bins#128HeathenUK wants to merge 6 commits intobreakintoprogram:mainfrom
HeathenUK wants to merge 6 commits intobreakintoprogram:mainfrom
Conversation
…e advantage of this to return the matched command. Allows auto-completion of internal commands while only needing to maintain mosCommands[] in mos.c centrally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds:
This is particularly necessary now that we are getting to the point where it's simply impossible to fit some code in MOSlet space, such as Sijnstra's excellent gunzip utility.
There are guard rails to prevent invocation of non-MOSlets from OSCLI (and therefore from within BASIC etc.) which will work for any Agon app that uses this function, preventing a user trashing running code and working RAM.
The priority order for tab resolution/execution in both cases is: built in commands, MOSlets (in /mos/), global (/bin/) .bin files, and finally .bin files in the current working directory.
The designs of these two features are necessarily interdependent with one another because of the assumptions you need to make in code, hence one PR for both otherwise unrelated features.
This is mutually exclusive with the two other PRs (now closed) for local and global non-MOSlet bin loading execution and tab completion.