Hi, I want to use rio with beam cursor, but the cursor hide the character. Other kind cursors also do.
Because the cursor is rendered to replace the character to cursor character.
It should be like this.
my opinion
I think rendering the cursor by Sugarloaf's Rect is one of the solutions.
The image above was created by this code. Cursors are considered to be associated with characters, so I defined new SugarStyle `on_cursor`.
https://github.com/niuez/rio/blob/0ea71b80d30af2038fa0a361b4d73b4d92be6b24/sugarloaf/src/sugarloaf.rs#L299-L307
But there are some problems.
- Sugarloaf is rendering engine. It should not be contain cursor shape information. The cursor shapes should be defined in rio.
- The color of cursor should be able to change by rio.
- How to render more complex cursors. For example, unfilled rectangle.
Hi, I want to use rio with beam cursor, but the cursor hide the character. Other kind cursors also do.
Because the cursor is rendered to replace the character to cursor character.
It should be like this.
my opinion
I think rendering the cursor by Sugarloaf's Rect is one of the solutions. The image above was created by this code. Cursors are considered to be associated with characters, so I defined new SugarStyle `on_cursor`.https://github.com/niuez/rio/blob/0ea71b80d30af2038fa0a361b4d73b4d92be6b24/sugarloaf/src/sugarloaf.rs#L299-L307
But there are some problems.