Skip to content

Font - add \C escape sequence to restore previous color - #4352

Closed
ims21 wants to merge 2 commits into
OpenPLi:scarthgapfrom
ims21:scarthgap
Closed

Font - add \C escape sequence to restore previous color#4352
ims21 wants to merge 2 commits into
OpenPLi:scarthgapfrom
ims21:scarthgap

Conversation

@ims21

@ims21 ims21 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor
  • save current color on stack if is font color changed with \c, and then restore it with \C

jbleyel referenced this pull request in OpenViX/enigma2 Jul 11, 2026
@jbleyel

jbleyel commented Jul 11, 2026

Copy link
Copy Markdown

OpenViX/enigma2@99e5f54

- if \c is not followed by 8 valid hexadecimal digits, the previous color is restored from the color stack
@ims21

ims21 commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

OpenViX/enigma2@99e5f54

And ? I still prefer the stack-based approach, as it provides predictable behaviour in all cases.

@ims21 ims21 closed this Jul 11, 2026
@ims21

ims21 commented Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

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