Skip to content

The character on cursor is hidden by it. #67

Description

@niuez

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.

image
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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions