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

Move the character output routine into its own pacakge #85

Closed
skx opened this issue May 22, 2024 · 0 comments · Fixed by #86
Closed

Move the character output routine into its own pacakge #85

skx opened this issue May 22, 2024 · 0 comments · Fixed by #86
Assignees

Comments

@skx
Copy link
Owner

skx commented May 22, 2024

We have a consolein package for reading from STDIN.

We should move the output writing into consoleout, and then allow switching the console output routine at runtime.

At the moment our output routine pretends to be a ADM-32 terminal:

This works with the WS.COM (wordstar) binary in our cpm-dist repository, and for most other stuff I tried. We can switch to raw/ANSI via the environmental variable SIMPLE_CHAR. Instead we should add a custom syscall to allow switching at runtime - as per:

Add a new binary, beneath samples/, named "console.com". Expected use will be something like:

  • console
    • Show the selected output method
  • console ansi|raw
    • Use raw output
  • console adm
    • Use the ADM driver.
@skx skx self-assigned this May 22, 2024
skx added a commit that referenced this issue May 22, 2024
Once complete this pull-request will close #85 by allowing us to
change output drivers at runtime.  We'll also remove the messy
ADM-3A output handling from our core CPM package.
@skx skx closed this as completed in #86 May 22, 2024
skx added a commit that referenced this issue May 22, 2024
* Make the writing of characters to the console pluggable.

Once complete this pull-request will close #85 by allowing us to
change output drivers at runtime.  We'll also remove the messy
ADM-3A output handling from our core CPM package.

* Make the console output driver selectable via CLI flag
* Working selectable output, via BIOS.
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

Successfully merging a pull request may close this issue.

1 participant