Skip to content

refactor: make example codes work for across all backends without duplicating config or code#32

Merged
rezigned merged 2 commits intomainfrom
refactor-examples
Jul 15, 2025
Merged

refactor: make example codes work for across all backends without duplicating config or code#32
rezigned merged 2 commits intomainfrom
refactor-examples

Conversation

@rezigned
Copy link
Owner

Each example should now work across all backends.

For example, examples/modes.rs can be run with crossterm or termion without changing any code.

cargo run --example modes --feature crossterm
cargo run --example modes --feature termion

@rezigned rezigned force-pushed the refactor-examples branch from a3bde3f to ccb21d5 Compare July 15, 2025 15:42
@rezigned rezigned force-pushed the refactor-examples branch from 3e1763e to ed82156 Compare July 15, 2025 16:04
@rezigned rezigned merged commit 0c1182d into main Jul 15, 2025
1 of 4 checks passed
@rezigned rezigned deleted the refactor-examples branch July 15, 2025 16:05
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