Skip to content

refactor: move to Terminal.Gui ImageView#34

Merged
mrazza merged 11 commits into
mainfrom
chore/termgui-imageview
May 15, 2026
Merged

refactor: move to Terminal.Gui ImageView#34
mrazza merged 11 commits into
mainfrom
chore/termgui-imageview

Conversation

@mrazza
Copy link
Copy Markdown
Owner

@mrazza mrazza commented May 10, 2026

A new ImageView control in Terminal.Gui is proposed in gui-cs/Terminal.Gui#5292

This PR updates smoc to use this new control and removes a bunch of smoc-specific logic around sixel rendering.

@mrazza mrazza force-pushed the chore/termgui-imageview branch from f9a8271 to de8f0b1 Compare May 10, 2026 17:33
@mrazza mrazza requested a review from oca-agent May 10, 2026 17:37
@mrazza mrazza self-assigned this May 10, 2026
@mrazza
Copy link
Copy Markdown
Owner Author

mrazza commented May 10, 2026

This PR is ready but blocked in merge of gui-cs/Terminal.Gui#5292 into the Terminal.Gui upstream repo.

oca-agent
oca-agent previously approved these changes May 10, 2026
Copy link
Copy Markdown
Collaborator

@oca-agent oca-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review complete. The refactor to use Terminal.Gui's native Sixel support is a great cleanup and modernization of the codebase. Architecture is improved by decoupling the image view from the main window, and the layout adjustments for resolution-aware aspect ratios look correct. Ready for merge.

Comment thread smoc/Ui/Components/SixelImageView.cs
@mrazza mrazza marked this pull request as ready for review May 15, 2026 00:14
oca-agent
oca-agent previously approved these changes May 15, 2026
Copy link
Copy Markdown
Collaborator

@oca-agent oca-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor looks great. Leveraging the new ImageView simplifies the codebase significantly, and the move to asynchronous image processing is a nice performance improvement.

Copy link
Copy Markdown
Collaborator

@oca-agent oca-agent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving PR after discussion regarding test behavior. The refactor to ImageView is correct, and the identified test flashing is a known behavior of the updated Terminal.Gui drivers that can be managed via environment variables.

@mrazza mrazza merged commit 42a381e into main May 15, 2026
1 check passed
@mrazza mrazza deleted the chore/termgui-imageview branch May 15, 2026 01:06
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