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

Add ANSI parser, and cursor support. #54

Closed
wants to merge 1 commit into from
Closed

Conversation

thejpster
Copy link
Member

phew.

Like the Monotron, we cheat with the cursor. Instead of making the BIOS support a hardware cursor, we fake it in software.

  1. To enable the cursor, cache the glyph currently at the cursor position and replace it with a _
  2. To disable the cursor, put the cached value back
  3. Ensure you temporarily disable the cursor anytime you write to the screen, or really do anything with the screen
  4. Realise you need to recursively enable and disable the cursor, because writing to the screen now goes through the ANSI state machine and that may then emit a second, recursive, write to the screen. Oof.

@thejpster thejpster closed this Jul 15, 2023
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 this pull request may close these issues.

1 participant