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

Allow configuring the editor colors #181

Open
jmmv opened this issue Jun 8, 2022 · 0 comments
Open

Allow configuring the editor colors #181

jmmv opened this issue Jun 8, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jmmv
Copy link
Collaborator

jmmv commented Jun 8, 2022

While people can configure the colors of the console and make those changes relatively "persistent" via AUTOEXEC.BAS (not really, because the colors will be reset as soon as a CLEAR or RUN happens), the editor cannot be configured.

White on black is problematic for some people, and I've never liked a bunch of unmodifiable constants that exist in the code. Thus the colors should be configurable.

We need a mechanism to define configuration variables and then use those throughout the interpreter to replace hardcoded constants. An obvious way to do this is to define special variables like CONFIG_EDITOR_BG, set those via AUTOEXEC.BAS, and change the machine logic to treat them as special so that CLEAR does not wipe them out. We'd also need a CONFIG command that dumps them all (or a more generic VARS that prints all variables for introspection). But I'm not yet sure if that's the best design choice...

@jmmv jmmv added the enhancement New feature or request label Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant