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 1m,2m,22m and 27m for legacy intensity support #53

Merged
merged 3 commits into from
Feb 20, 2021
Merged

add 1m,2m,22m and 27m for legacy intensity support #53

merged 3 commits into from
Feb 20, 2021

Conversation

lindoran
Copy link
Contributor

added control codes to control color intensity, for 4 byte color selection in programs that use the legacy color selection scheme 1,2 and 22 (for programs that do not support 90m-107m). fixed a bug in 7m that would cause older code to occasionally produce output were reverse did not work correctly when calling 7m or 27m when it was not needed (when the state was already swapped). this was done by adding a 'reverse' variable to ctx so that the terminal can keep track of color swaps for the state of the reverse text. the above fixes produce proper output with gorilla.com under CP/M.

added control codes to control color intensity, for 4 byte color selection in programs that use the legacy color selection scheme 1,2 and 22 (for programs that do not support 90m-107m).  fixed a bug in 7m that would cause older code to occasionally produce output were reverse did not work correctly when calling 7m or 27m when it was not needed (when the state was already swapped). this was done by adding a 'reverse' variable to ctx so that the terminal can keep track of color swaps for the state of the reverse text. the above fixes produce proper output with gorilla.com under CP/M.
@lindoran
Copy link
Contributor Author

PXL_20210219_172147596
I put in changes to support some more legacy code that uses the older intensity selection

compiled the patched version
@lindoran
Copy link
Contributor Author

Just updated documents and the bin folder

code formatting change
@chregu82 chregu82 merged commit 45293d7 into fbergama:develop Feb 20, 2021
@chregu82
Copy link
Collaborator

Thanks, I reviewed and merged it.

@lindoran
Copy link
Contributor Author

lindoran commented Feb 20, 2021 via email

chregu82 added a commit that referenced this pull request Apr 13, 2021
* Implemented several esc[m codes

* Added commands for setting default foreground and background

* Added control codes for high intensity colors

* Update gfx.c

Change the arithmetic for background intense color to correct a small color selection bug

* Updated binaries

* add 1m,2m,22m and 27m for legacy intensity support (#53)

* add 1m,2m,22m and 27m for legacy intensity support

added control codes to control color intensity, for 4 byte color selection in programs that use the legacy color selection scheme 1,2 and 22 (for programs that do not support 90m-107m).  fixed a bug in 7m that would cause older code to occasionally produce output were reverse did not work correctly when calling 7m or 27m when it was not needed (when the state was already swapped). this was done by adding a 'reverse' variable to ctx so that the terminal can keep track of color swaps for the state of the reverse text. the above fixes produce proper output with gorilla.com under CP/M.

* Update docs and bin folder

compiled the patched version

* Update gfx.c

code formatting change

* Improved formatting and fixes compile on Linux

Co-authored-by: Dave Collins <[email protected]>
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.

2 participants