Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*KEY support #8

Open
stevesims opened this issue Sep 6, 2023 · 2 comments
Open

*KEY support #8

stevesims opened this issue Sep 6, 2023 · 2 comments

Comments

@stevesims
Copy link
Contributor

On the beeb, *KEY keynumber [string] would assign a key to a string to a function key.

It'd be nice to add this 😁

@stevesims
Copy link
Contributor Author

a version of this has arrived with the *hotkey command in 2.2.0

this is not really equivalent to the *key command of the Beeb or other Acorn systems in that the programmed function key will always do an "enter" and can only either replace the existing edit line or wrap the line

leaving this issue open as a version more like Acorn's is still desirable

@stevesims
Copy link
Contributor Author

an implementation that allows for this would probably be strongly related to #18

the main limitation of *hotkey when compared to Acorn's *key command is that hotkey can only work with a single command, whereas Acorn's *key support would allow multiple commands in a definition. chances are a mechanism that supports an Acorn-style *exec would also allow for an Acorn style *key to be implemented.

essentially this would involve pointing the line editor system at a different source of input than the keyboard, until that source of input has been consumed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant