Skip to content

Fix handling of the Dim attribute. - #557

Merged
davidrg merged 1 commit into
masterfrom
fix-dim-attr
Aug 11, 2026
Merged

Fix handling of the Dim attribute.#557
davidrg merged 1 commit into
masterfrom
fix-dim-attr

Conversation

@davidrg

@davidrg davidrg commented Aug 2, 2026

Copy link
Copy Markdown
Owner

It should be applied in much the same way as bold attribute - if reverse video is active, then the background is dimmed rather than the foreground. Also not handled previously was changing colours while the dim attribute was set - this would cause the dim attribute to get unset. Both of these issues should now be resolved.

While at it, I've refactored the code that handles preparing the _K_WORK_STORE into a static method to reduce the copy&paste between the main rendering code and the render-to-image function.

It should be applied in much the same way as bold attribute - if reverse video is active, then the background is dimmed rather than the foreground.

Also not handled previously was changing colours while the dim attribute was set - this would cause the dim attribute to get unset.

While at it, I've refactored the code that handles preparing the _K_WORK_STORE into a static method to reduce the copy&paste between the main rendering code and the render-to-image function.
@davidrg
davidrg marked this pull request as ready for review August 11, 2026 08:29
@davidrg
davidrg merged commit ae6c669 into master Aug 11, 2026
32 checks passed
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