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 a 16 colors text mode over framebuffer, with NUL being transparent #46

Open
CHiPs44 opened this issue Jan 24, 2024 · 1 comment
Open

Comments

@CHiPs44
Copy link
Owner

CHiPs44 commented Jan 24, 2024

NUL chars in the text buffer should not be rendered at all, others will render with background and foreground colors instead of framebuffer content, without transparency.

Palette can be different from the framebuffer's one.

This does not need to use multiplane capability of scanvideo, unless it is easier or faster than "naive" rendering.

Text "cells" could be 2 to 4 bytes:

  • 8 bits for char to display
  • 4 or 8 bits for background color
  • 4 or 8 bits for foreground color
  • 4 or 8 bits for font (index) to use

Text mode could have these attributes:

  • (array of) font to use (TODO, only 8x8?)
  • lines as framebuffer pixel width / font width (or just 8?)
  • columns as framebuffer pixel height / font height (or just 8?)
  • cursor:
    • shape: horizontal line or block (and/or reverse block and/or vertical line?),
    • animation: off, fixed, flashing slowly or flashing quickly,
    • current line,
    • current column

This could be the base for a "dumb" terminal understanding a subset of ANSI/VT100 sequences.

@CHiPs44
Copy link
Owner Author

CHiPs44 commented Jan 28, 2024

WIP in textmode branch.

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