Skip to content

Replace crossterm dependency with tuinix for terminal handling#16

Merged
sile merged 9 commits intomainfrom
tuinix
Apr 29, 2025
Merged

Replace crossterm dependency with tuinix for terminal handling#16
sile merged 9 commits intomainfrom
tuinix

Conversation

@sile
Copy link
Copy Markdown
Owner

@sile sile commented Apr 29, 2025

No description provided.

@sile sile requested a review from Copilot April 29, 2025 13:40
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 removes the crossterm dependency and refactors terminal handling to use the tuinix library. Key changes include:

  • Replacing crossterm types and functions with their tuinix counterparts in various modules.
  • Refactoring canvas rendering to produce a TerminalFrame using a UnicodeCharWidthEstimator.
  • Updating event handling in App to use tuinix’s TerminalEvent and TerminalInput APIs.

Reviewed Changes

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

Show a summary per file
File Description
src/widget_legend.rs Replaced TokenPosition with TerminalPosition for cursor handling.
src/widget_diff_tree.rs Updated token styling to use TerminalStyle instead of TokenStyle.
src/terminal.rs Removed terminal handling implementation using crossterm.
src/lib.rs Removed terminal module import.
src/canvas.rs Refactored drawing methods to use TerminalPosition and a TerminalFrame.
src/app.rs Updated event handling to utilize tuinix TerminalEvent/Input types.
Cargo.toml Removed crossterm dependency and added the tuinix dependency.
.cargo/config.toml Added a simple cargo alias for development.

@sile sile changed the title Replace crossterm dependency with tuinix for terminal handling Replace crossterm dependency with tuinix for terminal handling Apr 29, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sile sile merged commit 3972b12 into main Apr 29, 2025
9 checks passed
@sile sile deleted the tuinix branch April 29, 2025 13:42
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