WHEELSCROLL: Put more of the branching logic inside the WHEELSCROLL function, add character names #2069
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.
Changes the function WHEELSCROLL so that the caller can pass a flag to specify the scrolling direction (positive or negative), and WHEELSCROLL decodes the parameters internally (also testing whether or not wheelscroll is enabled).
This is to allow an application(like Tedit) that runs with its own interrupts a simpler way of specifying the intended behavior.
I also introduced cHARACTERNAMES for the characters that wheelscroll uses to signal what should be done. This is to reduce dependency on the absolute values, so there is one less thing to worry about when we eventually move to Unicode.
I notice also that WHEELSCROLL is not incuded in the full.sysout. Is it time to include it by default?