emilk / emilk/egui

terminal style cursor

Open
#768 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 12h
Merged PRs (30d)
67

Description

Please make sure there is not already a similar issue!

**Is your feature request related to a problem? Please describe.**
I am trying to replicate the thick block cursor in terminals using a multiline TextEdit, but when increasing the cursor width it doesn't shift the start of the cursor to the right.

Edit:

I guess a vim like cursor is more what I want. Being able to have the cursor like in normal mode or insert mode.

As you can see in the image below, the cursor overlaps with the last character.
![image](https://user-images.githubusercontent.com/32014449/135862648-bc17f23e-cd3f-4b00-a6ac-8b5ad1045621.png)

Also the width of the cursor changes depending on whether text is inside the textedit or not.

With character
![image](https://user-images.githubusercontent.com/32014449/135862648-bc17f23e-cd3f-4b00-a6ac-8b5ad1045621.png)

Without character
![image](https://user-images.githubusercontent.com/32014449/135862800-0567628c-b93c-4171-8bfb-035c4b43050a.png)

Fixing the first problem will probably fix the varying cursor width problem.

**Describe the solution you'd like**
The Cursor doesn't start at the center but at the leftmost point of the cursor.

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.