gyscos / gyscos/cursive

Suggestion: Can Printer become a trait?

Open
#237 1 comment 0 reactions 0 assignees View on GitHub
enhancement internals
Dominant language
Rust
Stars
4.8k
Forks
270
Avg merge
5d 19h
Merged PRs (30d)
2

Description

Hi,

I am working on text editor, and I want to have multiple blinking cursors. That's obviously a pain to implement, unless I could wrap a Printer into a wrapper, that would just do the blinking on particular indices. I would just take original Printer and wrap it with something like "CursorAwarePrinter::new(oldPrinter, cursors)" and then use it in drawing function. What do you think?

Regards
NJ Skalski

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.