Skip to content

Refactor terminal rendering to use mame crate#21

Merged
sile merged 2 commits intomainfrom
introduce-mame
Aug 28, 2025
Merged

Refactor terminal rendering to use mame crate#21
sile merged 2 commits intomainfrom
introduce-mame

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Aug 28, 2025

No description provided.

@sile sile requested a review from Copilot August 28, 2025 13:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors terminal rendering to use the mame crate instead of the unicode-width dependency for terminal width calculations. The changes simplify the legend rendering logic and improve the terminal frame handling.

  • Replace unicode-width dependency with mame 0.1.1 for character width calculations
  • Refactor legend rendering to use mame's built-in legend functionality
  • Update terminal frame creation to use mame's UnicodeTerminalFrame

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

File Description
Cargo.toml Add mame 0.1.1 dependency and remove unicode-width
src/canvas.rs Replace unicode-width functions with mame equivalents and update frame creation
src/widget_legend.rs Refactor legend rendering to use mame's Legend struct instead of manual canvas drawing
src/app.rs Update rendering flow to separate canvas and frame operations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sile sile merged commit 823afdc into main Aug 28, 2025
9 checks passed
@sile sile deleted the introduce-mame branch August 28, 2025 13:15
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